Can someone check my SQL code?
There is a small error in my code but I dont know where...
So heres the code i have on my .php file:
$con = mysql_connect("localhost","register","mysql") or die(mysql_error());
echo "Connected to MySQL<br />";
mysql_select_db("users, $con") or die("Could not find database");
mysql_query("INSERT INTO users (FirstName, LastName, Email, Password) VALUES ('$_POST[fname]','$_POST[lname]','$_POST[email]','$_POST[password1]')");
Now heres the problem: When I submit to this page, the database isnt getting any data via "INSERT INTO" above. Is there some code im missing? or did i do everything wrong? thanks