CS> Actually, it looks to me like you're missing a semicolon terminating 
CS> your SQL statement. Try this:

CS> $query="update $table set field1='$var1' where id='$id';";

Actually, that semicolon is not required (and I think it might even break it).

The user should echo the query as suggested previously, so as to
ensure that values for the variables are all actually there, and being
passed to MySQL.


- Julie

--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com

Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20


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

Reply via email to