No errors appear but it creates the error "'There was a problem registering you. Please check your details and try again."
I tried your code and this also creates the error mesasge. What errors are there, I notice the date insert is very different.
Code:
if(!$errors){
$query = mysql_query("INSERT INTO users (firstname, surname, email, password, date_registered) VALUES ('" . $firstname . "', '" . $surname . "', '" . mysql_real_escape_string($registerEmail) . "', MD5('" . mysql_real_escape_string($registerPassword) . "'), GETDATE())");
if(mysql_query($query)){
$success['register'] = 'Thank you for registering. You can now log in on the left.';
}else{
$errors['register'] = 'There was a problem registering you. Please check your details and try again.';
}
}
}
Bookmarks