Hi all!

$query = "SELECT name FROM users WHERE uid={$session["uid"]}";
$ret = mysql_query($query);
while(list($name) = mysql_fetch_row($ret))
print ("your name is $name");

$update = "$name";

$query_update["name"] = "UPDATE my_items SET name = $update";
$result = mysql_query($query_update["name"])or die("Error: ".mysql_error());

When the script is run I receive this error and I am not understanding why,
can some point out why?

your name is Test
Error: Unknown column 'Test' in 'field list'


PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to