Portal Home > Knowledgebase > Articles Database > preg_match help


preg_match help




Posted by Danny159, 05-27-2011, 06:22 AM
Hey, I need some help with some php... I have a string called $url this is a word such as home I want to query my database table to find out if a field called link is = to that $url However there is a task because the field called link in the database has /xxx/home or /xxx/about (the xxx could be anything) but I need to check is the second part matches the word in the $url variable... and echo an error... Hope you underatand Dan

Posted by Steve_Arm, 05-27-2011, 07:01 AM
Such a query would be:



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
htaccess error (Views: 484)
Above net reseller (Views: 471)