='2'){
mysql_connect("$DBHost","$DBUser","$DBPass");
$result1 = mysql("$DBName","select * from Instructors WHERE InstructorID LIKE '$InstID%'");
while ($row1 = mysql_fetch_row($result1)) {
$Instructor=$row1[2];
$plain=explode(",",$Instructor);
$plainInstructor=$plain[1].' '.$plain[0];
}
} else {
$InstID='1';
$plainInstructor='Steve Veltkamp';
}
$pageTitle="Seminars by $plainInstructor";
$description='Business success is easier with what you learn at a BizShop entrepreneur seminar';
include("masthead.php");
echo "
[ Calendar View ]
";
echo "Click on any class title to read description, any location to register";
//$RowColor=SwapRowColor();
echo "";
// ========================= Setup # to display on page
if (empty($offset) || $offset < 0) {
$offset=0;
}
// ================== Get Count For Table ===============
$sql="select * from Schedule WHERE InstructorID='".$InstID."' AND DTG>'".$nowDTG."' Order by DTG";
$stmt = $dbCal->query($sql);
$rows = $stmt->rowCount();
//echo $rows.' rows selected';
//print_r($result);
$begin =($offset+1);
$end = ($begin+($limit-1));
if ($end > $rows) {
$end = $rows;
}
if ($rows==0){
echo "| There are none found |
";
} elseif ($rows==1){
echo "
| There is only $rows found. |
";
} else {
echo "
| There are $rows found,";
echo " now showing $begin to $end. |
";
}
echo '';
echo '
';
// =============================================== Next/Previous
echo "| ";
include('nextprevious.php');
echo " |
";
include("footer.php");
?>