Quote Originally Posted by soft2050 View Post
Error is on the sql query:
PHP Code: 
mysql_query("DELETE FROM wcddl_sites WHERE url='"$naD ."'"); 
Deleting a field from mysql where url is regex
PHP Code: 
mysql_query("DELETE FROM wcddl_sites WHERE url='"$surl ."'"); 
And yes, you can use mysql REGEXP query to directly delete without checking with preg_match but then it will delete all the matching urls in the table, not only the url one.
tried this at the start:
PHP Code: 
mysql_query("DELETE FROM wcddl_sites WHERE url='"$surl ."'"); 
^^ no luck. your 2nd point is what im tryna do, ddelete all the urls, do u no the correct syntax for?