jd2007 Posted July 9, 2007 Share Posted July 9, 2007 i have a column called 'tags' , how do i send mysql query to find whether a match is found in 'tags' content for a user input, then take all the information found in that row and store in an array... Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted July 9, 2007 Share Posted July 9, 2007 this is very basic mysql I will give you the code but please study up on it before you go willy nilly (wow i said willy nilly I should be slapped) into it. <?php $q = mysql_query(SELECT `tags` FROM Table WHERE `tags` = $input) or die(mysql_error()); //then for each match do while($row = mysql_fetch_array($q)) { //Do what you want with results } ?> 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.