Jump to content

( syntax error ) can somebody please help


beaurelic

Recommended Posts

hello

 

im trying to make a forum and i dont know alot about sql but im stuck on this one error

 

#1064 - 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 'user_name') . "' AND user_pass = '" . sha1($_POST 'user_pass')' at line 3

 

can somebody please help me

Edited by beaurelic
Link to comment
Share on other sites

Try using the post reference as a php variable.

 

EDIT:

 

Most importantly you need to clean your POST to prevent injection.

Edited by niche
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...