Nightchild
11-19-2007, 03:45 AM
Drawing a blank as to what I am doing wrong. I'm trying to update a DATETIME field with the following:
$query .= ", commission=" . $_post['commission'] . ", date_modified='" . date("Y-m-d H:i:s") . "', modified_by='" . $_SESSION['user_name'] . "'";
$query .= " WHERE part_id='" . $_POST['part_id'] . "'";
I keep getting the following error:
Query Error!
1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' date_modified='2007-11-18 22:34:19', modified_by='Alan' WHERE part_id='0007~'' at line 1
I know I'm staring at the problem... but where?
Thanks
$query .= ", commission=" . $_post['commission'] . ", date_modified='" . date("Y-m-d H:i:s") . "', modified_by='" . $_SESSION['user_name'] . "'";
$query .= " WHERE part_id='" . $_POST['part_id'] . "'";
I keep getting the following error:
Query Error!
1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' date_modified='2007-11-18 22:34:19', modified_by='Alan' WHERE part_id='0007~'' at line 1
I know I'm staring at the problem... but where?
Thanks