I am playing around (locally). I want to make up a sign up form for this cms-like thing I am building. I want to make sure that the user login and e-mail aren't in the db already.
My SQL Statement is:
INSERT INTO tbluser
WHERE NOT (
user_loginname = $userLogin AND
user_email = $userEmail))
I get the following error:
Could not add: 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 '@yahoo.com)(SELECT user_loginname, user_email FROM tbluserWHERE NOT ( user_login' at line 1