MYSQL Error!
#1

Hey there, I am getting a MYSQL error:
PHP код:
http://prntscr.com/gm8i5u 
PHP код:
http://prntscr.com/gm8laf 
Reply
#2

You probably set the column username as primary key and when you try to insert another player with the same name you get this error.

I suggest to use a numeric ID to identify player row on the database table.
Reply
#3

Quote:
Originally Posted by pollo97
Посмотреть сообщение
You probably set the column username as primary key and when you try to insert another player with the same name you get this error.

I suggest to use a numeric ID to identify player row on the database table.
I fixed it by removing unique from the table.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)