pouncer Posted April 8, 2007 Share Posted April 8, 2007 can we queries where for LIKE where we can search for 2 strings in the description? like mysql_query("SELECT * FROM collections WHERE description LIKE %something% OR description LIKE %somethingelse%"); is this complettely valid and is my syntax correct guys? Link to comment https://forums.phpfreaks.com/topic/46124-solved-php-query-help/ Share on other sites More sharing options...
PC Nerd Posted April 8, 2007 Share Posted April 8, 2007 yes thatw completely correct ( assumeing that you used the % deliberately as wildcards) ???? Link to comment https://forums.phpfreaks.com/topic/46124-solved-php-query-help/#findComment-224122 Share on other sites More sharing options...
pouncer Posted April 8, 2007 Author Share Posted April 8, 2007 yep, I want to match with for e.g, %cat% OR %dogs% etc. Thanks for confirming the correctness. Link to comment https://forums.phpfreaks.com/topic/46124-solved-php-query-help/#findComment-224124 Share on other sites More sharing options...
PC Nerd Posted April 8, 2007 Share Posted April 8, 2007 can you mark this thread as SOLVED using the mod at the bottom of the page it helps Link to comment https://forums.phpfreaks.com/topic/46124-solved-php-query-help/#findComment-224129 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.