mysql_query("INSERT INTO users(username,password,email) VALUES('".$_POST['username']."', '".$_POST['password']."', '".$_POST['email']."'") or die(mysql_error()); Code (markup): Error Message: 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 '' at line 2 EDIT: nvm I fixed it.
Glad you fixed it. Still, I would not use that code as-is. Never use POST variables directly in your SQL query - you will get hacked by a SQL injection in no time. Always clean up and escape your input variables.