[!--quoteo(post=351329:date=Mar 3 2006, 02:06 PM:name=craygo)--][div class=\'quotetop\']QUOTE(craygo @ Mar 3 2006, 02:06 PM) [snapback]351329[/snapback][/div][div class=\'quotemain\'][!--quotec--] since web is a string you have to encase it in quotes [code]$result = mysql_query("select * from $table WHERE categories LIKE '%web%' order by id desc limit $rows", $link) or die ("Could not read data because ".mysql_error());[/code] Ray [/quote] [!--quoteo(post=351329:date=Mar 3 2006, 02:06 PM:name=craygo)--][div class=\'quotetop\']QUOTE(craygo @ Mar 3 2006, 02:06 PM) [snapback]351329[/snapback][/div][div class=\'quotemain\'][!--quotec--] since web is a string you have to encase it in quotes [code]$result = mysql_query("select * from $table WHERE categories LIKE '%web%' order by id desc limit $rows", $link) or die ("Could not read data because ".mysql_error());[/code] Ray [/quote] thank you but how do I get the text from the input box to replace the text 'web' in my code? Thanks