This is my query
mysql_query($con,"UPDATE my_table SET `$cat`='0' WHERE username='$user' AND password='$pass' AND foot='$food'");
I get this:
Warning: mysql_query() expects parameter 1 to be string, resource given in file.php on line 42
i know that all of my variables are defined, what seems to be the issue?