include "../PHP/connect.php";
connect_mysql();
include "../PHP/mod_form.php";
if (! isset ($href_allday)) { $href_allday = 1; }
if ($nb_row == 0) {
$form[list_event] = '$row[0]
';
} else {
$nb_row = 2;
$form[list_event] = '$row[2]
';
}
$q_stat = mysql_query("SELECT * FROM mail_data WHERE date <> '' ORDER BY date");
$form[query] = $q_stat;
$form[href_allday] = $href_allday;
$form[dia] = "%e";
$form[locale] = "en";
form_cal ($form);
?>
Comments:
-
List of event on each day, from database. With this parameter you can add tags for the format (font/color/hr ...)
[list_event] =
echo "\$row[2] / \$row[0]";
?>
-
You can mark all day of month, not only the days where you have events.
[href_allday] =
echo "0 (only days with events) / 1 (all days)";
?>
The source