lets say I have $_POST['url']='http://myexamplesite.com/images/image.jpg'; how can I get correct result if this url exists in the database but looks like: http://www.myexamplesite.com/images/image.jpg
if I do:
$q='select id from products where url LIKE "%'.$_POST['url'].'%"';
This will not return always correct results. What is the correct way? Thanks