I sometimes have MySQL fields that end up with spaces in them... which I want to use a query to find all fields=" "... but when I coded this:
$Empty_Query_Cat=mysql_query("SELECT * FROM $Prod_DB WHERE (ProdCat=\" \") OR (SubCat=\" \") OR (SubCat3=\" \") OR (ProdMisc=\" \") OR (ProdImage=\" \")OR (ProdDesc=\" \") OR (ProdName=\" \") OR (ProdPrice=\" \") OR (ProdDate=\" \")");
$num=mysql_num_rows($Empty_Query_Cat);
It gives an SQL error. I tried it without the parenthesis (sp), and it did not help.
Any ideas?