saving mysql
#1

i have made a system,but the problem is that if i want to detect the right row to update,i should use 2 %d at WHERE,like
pawn Код:
UPDATE 'filename' SET `thing`=%d WHERE `item1`=%d, `item2`=%d
but it doesnt work like this,how to make it work
NOTE:for these people who say "detect it using only 1 %d,i cant,because they can have same item 1 and different item 2 or different item1 and same item 2
Reply
#2

Код:
UPDATE `filename` SET `thing`= %d WHERE `item1`= %d AND `item2`= %d
Like this.
Reply
#3

thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)