Success in linking the day to another page, BUT once on the page, I am having a problem selecting data from a table where the date in the table equals the date I clicked in the calendar. I am sure it has to do with the SQL query, and I am not sure how to associate the date of the calendar to the date recorded in the table. The date_string table column is the type 'date'. What am I doing wrong?
This is the code which links the numbered day to another page:
echo ' <a href="depday.php?year='.$Year.'&month='.$Month.'&day='.$calendar_day.'"> '.$calendar_day,'</a> ';
Here is my current SQL query..
$sqlquery = "SELECT id, diwtitle, date_string FROM diw_alpha WHERE '$calendar_day' = date_string ORDER BY date_string";