| Issue 1132: | No rendering by default | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Hi,
I'm having a problems with my fullcalendar. I'm using the json methode to load events out of my database. I'm doing this via php.
My code works, but my events only render when I switch date...
for example: I enter my page, so events are renderd... when I change the month back or formard my events render...
why is that?
Mayby a thing you should know, the calendar is integraded in a tab system... (the default jquery UI methode)
This is my php code...
<?php
include("config.php");
$Events_Ophalen = mysql_query("SELECT * FROM agenda ORDER BY start DESC") or die(mysql_error());
$events = array();
while($row = mysql_fetch_assoc($Events_Ophalen)) {
$eventArray['id'] = $row['id'];
$eventArray['title'] = $row['title'];
$eventArray['start'] = date('Y-m-d H:i',$row['start']);
$eventArray['end'] = date('Y-m-d H:i',$row['end']);
$eventArray['url'] = $row['url'];
$eventArray['allDay'] = $row['allDay'];
$eventArray['editable'] = $row['editable'];
$events[] = $eventArray;
}
header('Content-type: application/json');
echo json_encode($events);
?>
Oct 2, 2011
Project Member
#1
adamrs...@gmail.com
Status:
Done
|
|
| ► Sign in to add a comment |