SA-MP Forums Archive
SQL ERROR - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SQL ERROR (/showthread.php?tid=641477)



SQL ERROR - Puff - 16.09.2017

PHP код:
SQL ERROR1062 Duplicate entry 'blalal' for key 'username' 
what causes that error? ID is set on AutoIncrement, username causing problems.. sometimes.. not always.


Re: SQL ERROR - wallee - 16.09.2017

is the primary key on id or on username? if it's on username you need to change it to the id


Re: SQL ERROR - Puff - 16.09.2017

Quote:
Originally Posted by wallee
Посмотреть сообщение
is the primary key on id or on username? if it's on username you need to change it to the id
PRIMARY to ID is set already..