i am working on events calendar.i want to retrieve a event from database when a specific date is clicked in the calendar. Also i need to highlight the data which has event information.please help me with the code
Do ajax call on date clicked
var date = $('#dateid').val();
$.ajax({
type: 'POST',
url: url,
data: 'date=date ',
success:function(msg)
{
//here you can play whatever you want
}
});
In your php file
Get the date $_POST['date']
and write the query and return the date,
You may try Easy PHP Calendar rather than writing entire Code when you already have the resources available.
http://www.easyphpcalendar.com/demoStandard7.php
For a Free Version Try Calendarix or WebCalendar
Have a look at This Event Calendar, may be this can help you.