Having a issue where the content that the block is supposed to be displaying is actually displayed outside the block while the block reports that there is no content to be displayed.
Heres the blocks code:
Code:
if (eregi("block-Calendar1.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
$module_name = "Calendar";
global $prefix, $currentlang;
include("modules/$module_name/language/lang-$currentlang.php");
$Date = Date("m/d/Y");
$Date_Array = explode("/", $Date);
//$Last_Day = ($Date_Array[1] - 0) + 7;
//$result = mysql_query("SELECT eid,title,startTime,endTime,alldayevent,barcolor FROM $prefix"._events." WHERE ((eventDate >= '$Date_Array[2]-$Date_Array[0]-$Date_Array[1]' AND eventDate <= '$Date_Array[2]-$Date_Array[0]-$Last_Day') OR (endDate >= '$Date_Array[2]-$Date_Array[0]-$Date_Array[1]' AND endDate <= '$Date_Array[2]-$Date_Array[0]-$Last_Day') OR (endDate >= '$Date_Array[2]-$Date_Array[0]-$Last_Day' AND eventDate <= '$Date_Array[2]-$Date_Array[0]-$Date_Array[1]')) ORDER BY eventDate ASC");
$eventsresult = mysql_query("SELECT eid,title,startTime,endTime,alldayevent,barcolor FROM $prefix"._events." WHERE (eventDate <= '$Date_Array[2]-$Date_Array[0]-$Date_Array[1]' AND endDate >= '$Date_Array[2]-$Date_Array[0]-$Date_Array[1]') ORDER BY alldayevent,startTime, endTime ASC");
if (mysql_num_rows($eventsresult) == 0) {
$content.= "<center><font size=\"2\">"._CALNOEVENTS."</font></center>";
}
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum