MySQL Forums
Forum List  »  Newbie

Re: Still Having Problems with DATE....
Posted by: Peter Brawley
Date: June 21, 2021 07:32AM

Quote

$sql = "INSERT INTO `orderform` ( jobnumber, year, month, currentdate, 'surveyduedate') VALUES ($updatejobnumber, $currentyear, $currentmonth, CURDATE(), $surveyduedate)";
$sql = "INSERT INTO `orderform` ( jobnumber, year, month, currentdate, 'surveyduedate') VALUES ($updatejobnumber, $currentyear, $currentmonth, CURDATE(), $surveyduedate)";

Quote the date values:

$sql = "INSERT INTO `orderform` ( jobnumber, year, month, currentdate, surveyduedate)
VALUES ( $updatejobnumber, $currentyear, $currentmonth, CURDATE(), '$surveyduedate' )";

Options: ReplyQuote


Subject
Written By
Posted
Re: Still Having Problems with DATE....
June 21, 2021 07:32AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.