id123 Posted December 10, 2003 Share Posted December 10, 2003 hi, is there a function in mysql where the search string is used to find anything containing it. eg if you searched \"american\" then on a film datbase you would get american pie1, american pie2, american wedding, american werewolf in london etc etc so far i have tried select * from dvd where title = $title hope that makes sense coz it kind of dont 2 me!!!!! thanks Quote Link to comment Share on other sites More sharing options...
Goochi Posted December 10, 2003 Share Posted December 10, 2003 SELECT * FROM DVD WHERE title IS LIKE \'*$title*\' or something similar.. it something with wildcards.. Quote Link to comment Share on other sites More sharing options...
Deadmeat Posted December 10, 2003 Share Posted December 10, 2003 SELECT * FROM DVD WHERE title IS LIKE \'*$title*\' or something similar.. it something with wildcards.. $result = mysql_query(\"SELECT * FROM dvd WHERE title LIKE \'%title%\'\"); 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.