On page load mysql query:
$today = date('D, d M, Y');
$sql = "SELECT * FROM programs WHERE singleday = '$today' AND city = 'New York'";
And I have a calender, while changing the date I want to pick data and display according to date:
<form method="post">
<input align="center" type="text" id="picker"
onchange="this.form.submit()" name="picker" size="30"/>
</form>
and
$sql = "SELECT * FROM programs
WHERE singleday = '$_POST[picker]' AND city = 'New York'";
So what I need is while going to New York want to show today's data and while changing the calendar date show data on the particular date, on the same page.
Please help