I'm making a PHP4 script that uses a MySQL database and I'm having some trouble.j I'm trying to update a record in the MySQL database but not having much luck. Here is my code:
mysql_query("INSERT INTO counterdata (password) WHERE username = '$curuser' AND password = '$curpass' VALUES ('$newpass')");
It would post to the database before I added the WHERE command but it would post anywhere. Now it won't post at all. Any ideas?