Kasuke_Akira Posted March 16, 2007 Share Posted March 16, 2007 I don't know how to search fields for specific things. Here are 4 entries in a database all under the column "name": Shock Barbed Shocker Shockwave Sudden Shock I need to know a few things: If I were to have a textbox to set search stipulations, what would my query string look like to get all of these entries to show up if I simply typed "Shock" in the textbox? Basically, how do I get PHP/mySQl to search for something in a field, even if it isn't exact, but just contains those letters somewhere? Also, how would I make it limited to matching exactly how it is typed in the textbox (just the letters, not case-sensitive). So if "Shock" is typed in the textbox, only the "Shock" entry would be returned. Quote Link to comment Share on other sites More sharing options...
only one Posted March 16, 2007 Share Posted March 16, 2007 http://www.designplace.org/scripts.php?page=1&c_id=25 Quote Link to comment Share on other sites More sharing options...
Kasuke_Akira Posted March 16, 2007 Author Share Posted March 16, 2007 Thanks 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.