The fields I’m checking for upon registration:
if($username&&$email&&$password&&$repeatpassword) { }
I have about 10 fields so my registration query looks like this:
$queryreg = mysql_query("INSERT INTO users VALUES(
'','$username','','$password','$email','','','','','',''
)");
die ("You have been registered.");
When I try to register it tells me I have registered successfully but does not add the user into the database. The database name and password are correct.
Your SQL query looks wrong to me, it should be more like:
First the colomns, then the values 🙂