Quote:
Originally Posted by craighowarth
It just comes up with the manual error message I put in the code:
PHP Code:
echo '<font color="red">You could not be registered, please contact us about the problem and we will fix it as soon as we can.</font>';
So i'm guessing the script is fine, it just cannot put the information into the database.
|
This means, that the number of affected rows is not equal to 1 which means there is probably an error in the query.
Your query is
PHP Code:
$query = "INSERT INTO users (username, email, password, active, title, firstname, surname, day, month, year) VALUES ('$username', '$email', SHA('$password'), '$a')";
My first guess is that the number of values doesn't match the number of fields you are trying to set.
You are suppressing any error messages from the query by the use of the '@' symbol in front of the 'mysql_query'. If you omit it, like
PHP Code:
$result = mysql_query($query);
you will probably see the full error message.
|