Update query with variables.
#1

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'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)