[Solved] MySQL INSERT statement brings an error [closed]


Order is reserved word in MySQL, you can use back tick(`) around table name

Also you can use MySQL NOW() function for date instead of PHP variable $date

$t = "INSERT INTO `order` (order_date) VALUES (NOW())";

solved MySQL INSERT statement brings an error [closed]