I have face a syntax error 1064.
I wanted to download a specific data, depending on the date that the user key in, from the database but i got this error:
Couldn't execute query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?' at line 1 1064
This is my codes:
$ddate = $_GET['Absent_Date'];
$sql = ("Select * from $DB_TBLName WHERE `Absent_Date` = $ddate");
Please help me. Thanks:}