Re: [PHP] Putting variables in a string

2001-08-28 Thread Papp Gyozo
Hi, try to change the line in that loop to this one: $sql .= $key.' = '.$$key.', '; - Original Message - From: P.Agenbag <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 28, 2001 7:54 PM Subject: [PHP] Putting variables in a string >

[PHP] Putting variables in a string

2001-08-28 Thread P.Agenbag
I am trying to make a string that will contain variables. The resulting string will be a sql query string and must look something like " update $table_name set key='$key' , next='$next' where id = $id" Since the variable name is the same as the key name, I tried to generate this string with a