$sql = "UPDATE users SET fname='".$form_values{'fname'}."', lname='".$form_values{'lname'}."', phone='".$form_values{'phone'}."' WHERE (contact_id = $form_values{'contact_id'}) "; print "
sql = $sql\n"; #execute $sth = $dbh->prepare($sql) or die("Could not prepare!" . $dbh->errstr); $sth->execute() or die("Could not execute!" . $dbh->errstr);