mysql errors.
#1

Hi,

How to fix that errors:

Code:
[ERROR] CMySQLQuery::Execute[] - (error #1062) Duplicate entry '1' for key 'PRIMARY'
[ERROR] CMySQLQuery::Execute[] - (error #1062) Duplicate entry '3' for key 'PRIMARY'
Reply
#2

Simple, don't try to insert something that's already there. If you require it, use
PHP Code:
ON DUPLICATE KEY UPDATE 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)