PHP and MySQL problem...?

  • Thread starter Thread starter ben
  • Start date Start date
B

ben

Guest
mysql_query("DELETE FROM `fav` WHERE gamename='$game' and WHERE user='$user'");

What is the syntax to make this work? I want it to delete the row where gamename = $game and user = $user. What is the correct syntax for this?
Never mind! I just got it! It's...

mysql_query("DELETE FROM `fav` WHERE `gamename`='$game' AND `user`='$user'");
 
Back
Top