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... Link to comment https://forums.phpfreaks.com/topic/59027-mysql-help/ 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 } ?> Link to comment https://forums.phpfreaks.com/topic/59027-mysql-help/#findComment-293003 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.