MySQL problem
#6

Combine pid and item to make a unique key. Then use only a single query, rather than two:
PHP код:
INSERT INTO playerinventory (pid,item,amountVALUES (%d, %, %dON DUPLICATE KEY UPDATE amount = %
See also here for a similar structure: https://sampforum.blast.hk/showthread.php?tid=505081
Reply


Messages In This Thread
MySQL problem - by PakPak - 31.05.2014, 14:42
Re: MySQL problem - by nmader - 31.05.2014, 14:45
Re: MySQL problem - by PakPak - 31.05.2014, 14:47
Re: MySQL problem - by nmader - 01.06.2014, 05:05
Re: MySQL problem - by DobbysGamertag - 01.06.2014, 05:13
Re: MySQL problem - by Vince - 01.06.2014, 10:55

Forum Jump:


Users browsing this thread: 1 Guest(s)