--- In [email protected], Sherif Abdou <[EMAIL PROTECTED]> wrote:
>
> get the error and do error.toString(); and tell me what you see
>
>
Many thanks for your good idea~~~!
I'v fix the problem.
It seems to be the SQL query error.
Original query was :
$query = "INSERT INTO users VALUES ('','$name', '$addr')";
I change it like this:
$query = "INSERT INTO users (`username`, `emailaddress`) VALUES
('".$name."', '".$addr."')";
And it works!
I think it because the `users` table contains an auto_increment field
`userid`