Sunday, 29 September 2013

PHP MySQL delete where values are equal to

PHP MySQL delete where values are equal to

I have a PHP chat script that calls a MySQL database when a user signs out
to delete them from the database.
My script is:
mysql_query("DELETE * FROM users WHERE username='$user[username]' AND
rank='0'");
What I want to do is delete anyone with the rank of 0 when they leave. Why
isn't this script working?

No comments:

Post a Comment