Re: [PHP] Strange error in PHP/MySQL

2006-10-02 Thread Dave Goodchild
Do you have the Host field set to unique? -- http://www.web-buddha.co.uk http://www.projectkarma.co.uk

RE: [PHP] Strange error in PHP/MySQL

2006-10-02 Thread Brad Fuller
> if (mysql_query($sqlInsertUser, $conn)) > $messagesqlInsertUser = 'Success...'; > else > $messagesqlInsertUser = 'Error: ' . mysql_error(); > $result = mysql_query($sqlInsertUser); I see this being executed twice. -> mysql_query($sqlInsertUser); I believe that is your problem. Chang

[PHP] Strange error in PHP/MySQL

2006-10-01 Thread Deckard
Hello, I have this code: // insert new user in mysql user table $sqlInsertUser = "INSERT INTO user (Host, User , Password , Select_priv, Insert_priv, Update_priv, Delete_priv) VALUES ('$hostname', '$mysql_username', '$mysql_password', 'N', 'N', 'N', 'N')"; if (mysql_query($sqlInsertUser, $c