Forum Moderators: coopster
$result = mysql_query("select * from items where itemName Like'A%' and WHERE field2='value'
order by itemName asc");
Ok, I don't think I can use the and but I don't really know how to do this. Can anyone help?
Teresa
$result = mysql_query("SELECT* FROM items WHERE itemName LIKE '%$A%" AND field2='$value' ORDER BY itemName asc");
I also modified A and value to represent variables that you would plug into the query. Not sure if you are hard coding these values or using variables in your query.