#1

What does this error mean:
PHP код:
[21:15:17] [MySQLError (0): Failed to exeute queryDuplicate entry 'Acciara_Test' for key 'PRIMARY'
On this:
PHP код:
    format(saveQuerysizeof(saveQuery),"INSERT INTO `alogs` (`name`,`string`,`to`,`time`,`type`) VALUES ('%s','%s','%s',CURRENT_TIMESTAMP,1)",name,string,name2);
    
mysql_query(saveQuery); 
It's when I tried giving myself money
Reply
#2

I don't use MySQL myself, but I think it's because your script is trying to add a value in a primary key column which already exists (in that column). You could tick the auto-increment box, or create a new column (i.e. id) which holds the primary key attribute and is auto-incremented.
Reply
#3

Yeah, I figured it out straight after posting the thread, edited the whole table.
Thanks anyways!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)