Php and mysql don't insert tuple

$sql = "INSERT INTO ORDERS(pid, bid, amount, totalPrice, orderDate) VALUES (".$pid.",'".$bid."',".$amount.",".$totalPrice.",'".date("Y-m-d h:i:sa")."');"; $conn->query( $sql);

This doesn’t insert tuple in ORDERS table.

I solved it by changing “Y-m-d H:i:s”

1 Like