Thread: query wildcards
View Single Post
Old 03-07-2008, 05:52 PM   #1 (permalink)
falsepride
Regular Contributor
 
Join Date: Oct 2004
Posts: 207
falsepride is on a distinguished road
query wildcards

i need to query a bunch of entries from a table from variable columns with a wild card before and after the search term. thats vague i know. so heres my query, but i don't think its a valid query.

Code:
mysql_query("SELECT * FROM livestock WHERE" . $_GET['zone'] . "LIKE '%"  . $_GET['name'] . "%'");
falsepride is offline   Reply With Quote