I have a prepared statement which I want to execute but I cant understand why is it not working:
$sales_date = date("'Y-m-d H:i:s'");
$cus_id = 1;
$stmt = $db->prepare("INSERT INTO devices (serial_imei,serial_no,type_id,created_date,cus_id,sales_date) VALUES (?,?,?,?,?,?)");
$stmt->bind_param('23fgh455', '234fgh234', 66, $sales_date, $cus_id, $sales_date);
$stmt->execute();
$stmt->close();
Maybe there is something wrong that I cant detect at the moment?!