Hello. I have a problem with my code below, but can't see any issues with it.
I am trying to get all of the appointments from the appointments table, within the dates input by the user and display them in a table. I am getting a Syntax error.
My mysql query is as follows:
$result = mysql_query("SELECT * FROM appointment
WHERE Appointment_Date BETWEEN $fromDate AND $toDate
AND Practice_ID = '$prac' ORDER by Appointment_Time");
while ($row = mysql_fetch_array($result);