INSERT INTO mysql error [+rep]
#4

Quote:
Originally Posted by Mencent
Посмотреть сообщение
Hello!

PHP код:
format(query,sizeof(query),"INSERT INTO `Accounts` (`Username`,`pPass`) VALUES ('%s','%s')",GetName(playerid),PlayerInfo[playerid][pPass]); 
I think GetName is a string, so you have to use %s instead of %d. Also you can leave "SET" and you forgot a ")".
thanks!
Reply


Messages In This Thread
INSERT INTO mysql error [+rep] - by OMonger - 10.01.2016, 11:15
Re: INSERT INTO mysql error [+rep] - by ]Rafaellos[ - 10.01.2016, 11:37
Re: INSERT INTO mysql error [+rep] - by Mencent - 10.01.2016, 11:55
Re: INSERT INTO mysql error [+rep] - by OMonger - 10.01.2016, 12:47

Forum Jump:


Users browsing this thread: 3 Guest(s)