My PHP string contain this data :
$OpenDate = '20-Sep-18' ;
but when i insert it into database it give me an error :
Column not found: 1054 Unknown column 'Sep' in 'field list'' in C:\xampp
tried to replace all ' - ' to ' _ ' but it has not worked also .
EDIT :
QUERY CODE :
$stmt = $conn->query("INSERT INTO `ticketinfo`
(`tOrderId`)
VALUES
( ".$tOrderID.") on duplicate key update `tPLU`= ".$tPLU." , `tPrice`= ".$Total1." , `tBuy`=".$OpenDate );
the problem is in the $OpenDate