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? Quote Link to comment 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) ???? Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.