Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001062

Re: [PHP-DB] MySQL Error??? From: CC Zona (cczona <email protected>)
Date: 06/28/01

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>