I use sql to select all the URLs of my sites from a table.
$sql = 'select * from pages where "myURL field";
However, I want to be more specific with my request. For example, in my table there are several duplicate links:
about-us
./about-us
I do not want the field to ./about usbe selected. Is there any way to say:
select * where "myURL field" does not begin with . /
Or should I just forget it and parse it with PHP?
source
share