phpretard Posted March 17, 2008 Share Posted March 17, 2008 I would like to show all content that begins with the letter W. $result = mysql_query("SELECT --a row-- FROM --a table-- --but only the information that starts with W--"); any thoughts? Quote Link to comment Share on other sites More sharing options...
crashmaster Posted March 17, 2008 Share Posted March 17, 2008 WHERE {row} LIKE 'w%' Quote Link to comment Share on other sites More sharing options...
trq Posted March 17, 2008 Share Posted March 17, 2008 SELECT fld FROM tbl WHERE fld LIKE 'w%'; Quote Link to comment Share on other sites More sharing options...
phpretard Posted March 17, 2008 Author Share Posted March 17, 2008 What does the % do? Quote Link to comment Share on other sites More sharing options...
phpretard Posted March 17, 2008 Author Share Posted March 17, 2008 Thank you for the quick response!!! Quote Link to comment Share on other sites More sharing options...
revraz Posted March 17, 2008 Share Posted March 17, 2008 Wildcard What does the % do? 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.