php-db | 2001062
Date: 06/28/01
- Next message: Beau Lebens: "RE: [PHP-DB] MySQL Error???"
- Previous message: Christopher Ostmo: "Re: [PHP-DB] Storing Code in a db?"
- In reply to: Brian Grayless: "[PHP-DB] MySQL Error???"
- Next in thread: Beau Lebens: "RE: [PHP-DB] MySQL Error???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In article <C3C8C2499A63D211BB7D00A0C9E1C706941216 <email protected>>,
bgrayless <email protected> (Brian Grayless) wrote:
> Is anyone familiar with this MySQL error?
>
> "1062: Duplicate entry '127' for key 1"
You have a unique key (likely the primary key field). There is already a
record with value "127" in that field.
> I wrote a great bookmark management program that works fine, but everytime I
> insert bookmarks, I insert somewhere over 120 and I start getting this
> error, and it won't add them anymore. Any suggestions???
For options, see the MySQL docs on the "insert ignore" and "replace"
keywords.
-- CC-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Beau Lebens: "RE: [PHP-DB] MySQL Error???"
- Previous message: Christopher Ostmo: "Re: [PHP-DB] Storing Code in a db?"
- In reply to: Brian Grayless: "[PHP-DB] MySQL Error???"
- Next in thread: Beau Lebens: "RE: [PHP-DB] MySQL Error???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

