On Wed, 20 Mar 2002, ROBERT MCPEAK wrote: > $sql = "UPDATE mytable SET > img_url=$img_url,visitdate=$visitdate,img_group=$img_group,display=$display, > caption=$caption where id = $id";
You need to surround non-numeric values with 'single quotes'. $sql = "update mytable set img_url='$img_url', etc. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php