I'm working on a calendar script which looks at a table full of calendar events, and returns all the events for the day that the user clicks on from the calendar page. The script that generates the links on the days of the calendar uses this line to generate the URL
[FONT=courier new]<a href=\"showdate.php?date=$data\" alt=\"$qr_num event(s)\" title=\"$qr_num event(s)\">$day</a>"[/FONT]
The URL is created to pass an argument (the date stored in $data) to showdate.php.
In my file 'showdate.php', I have a select query
[FONT=courier new]jquery("SELECT * FROM calendar WHERE date = $date");[/FONT]
$date is the variable passed by clicking on the link.
When I click on the link, I get an error stating that there was a problem running the query. Could it be that my problem is that "date" is a reserved word when running my select query?