SA-MP Forums Archive
Update query with variables. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Update query with variables. (/showthread.php?tid=600122)



Update query with variables. - CSCripMa - 04.02.2016

Hi,

I have simple query in php i need to update it when i have variable with any number, like

$nameslot = row[ 0 ];

update table set name$row[ 0 ]='$whatname'

I load from database nameslot, because i have in database like that

name1
name2
name3


and so on. How to write this query that update what is slot that name and update, because i think that i bad:

update table set name$row[ 0 ]='$whatname'