Mit diesem Code werden Werte ausgegeben, die ein Veranstaltung bezeichnen. Ich versehe aber die Syntax nicht. Wie kann der Wert aus Description eingelesen werden.
$SQL = mysql_query("SELECT color, caption, description, private, DAYOFMONTH(FROM_UNIXTIME(`date`-3000)) as `day` FROM cal_items
WHERE `date` >= ". mktime(0,0,0,$current['month'],1,$current['year']) ."
AND `date` < ". mktime(0,0,0,$current['month'],$current['days_in_month'],$current['year']) ."") or die(mysql_error());
$events = array();
while ( $rs = mysql_fetch_assoc($SQL) )
{
$events[$rs['day']][] = $rs;
}
$SQL = mysql_query("SELECT color, caption, description, private, DAYOFMONTH(FROM_UNIXTIME(`date`-3000)) as `day` FROM cal_items
WHERE `date` >= ". mktime(0,0,0,$current['month'],1,$current['year']) ."
AND `date` < ". mktime(0,0,0,$current['month'],$current['days_in_month'],$current['year']) ."") or die(mysql_error());
$events = array();
while ( $rs = mysql_fetch_assoc($SQL) )
{
$events[$rs['day']][] = $rs;
}
Kommentar