[PHP] what does this error means?
When Itried to insert a record into a table, It looks like the record was never inserted into table so I use mysql_error() and the error message show up: "Duplicate entry '10' for key 1" What does that tell me? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] what does this error means?
Hi Jacky, This means that your key 1 i,e the first field in the table is a primary key and the table contains a record which has a value 10 in the first field. Hope this is clear. Keyur $$$ - Original Message - From: "Jacky@lilst" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 11, 2001 3:55 AM Subject: [PHP] what does this error means? When Itried to insert a record into a table, It looks like the record was never inserted into table so I use mysql_error() and the error message show up: "Duplicate entry '10' for key 1" What does that tell me? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] what does this error means?
You are trying to add a record whose primary key/unique index already exists in the database. -Stewart -Original Message- From: Jacky@lilst [mailto:[EMAIL PROTECTED]] Sent: 10 April 2001 23:25 To: [EMAIL PROTECTED] Subject: [PHP] what does this error means? When Itried to insert a record into a table, It looks like the record was never inserted into table so I use mysql_error() and the error message show up: "Duplicate entry '10' for key 1" What does that tell me? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]