|
php variables in the Set clause of mysql UPDATE
hey,
So youve got your typical UPDATE statement, UPDATE Table SET column = 'data'. What im wondering is if its possible to have the column aspect of that to be a php variable? I've been trying this but nothing seems to happen, and I dont get any error, so I think the code just recognizes it as a string, not as the value of the variable. I tried to echo the variable to see if that would work, but then I got a parse error. Anyone have any other ideas? any help would be greatly appreciated, thanks!!
|