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
>
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
2 matches
Mail list logo