NSA
sudo apt-get thefuckout.tar.gz
- Dec 9, 2011
- 715
- 86
So,
I have an update query like so:
"UPDATE chat_admins SET username = '" . $username2 . "',password = '" . $password . "',key = '" . $key . "' WHERE username = 'admin' AND password = 'password'";
But whenever I try and run the stupid thing, I get this retarded error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key = '6070' WHERE username = "admin" AND password = 'password'' at line 1
I tried removing the " ' " from the query, still nothing.
Sometimes, when I run this query it messes up my database too.
When I try to go into "chat_admins" it takes me back to phpMyAdmin's home page which means I have to re-create it (using an import).
Any help with this?
I have an update query like so:
"UPDATE chat_admins SET username = '" . $username2 . "',password = '" . $password . "',key = '" . $key . "' WHERE username = 'admin' AND password = 'password'";
But whenever I try and run the stupid thing, I get this retarded error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key = '6070' WHERE username = "admin" AND password = 'password'' at line 1
I tried removing the " ' " from the query, still nothing.
Sometimes, when I run this query it messes up my database too.
When I try to go into "chat_admins" it takes me back to phpMyAdmin's home page which means I have to re-create it (using an import).
Any help with this?