Announcements
Example Announcement -
Changed info - Now Available! Click here to download the new free resource.
Example Announcement 2 -
The New Class is Live! Join us to discuss the exchange of ideas and research between business peers and mentors and others interested in related subjects. This is an example announcement.
Example Announcement #3 - January 25, 2025
This is an example announcement. Click here to get our speaker lineup for our conference.
Changed here!!! We're Glad You Found Us!
This is stand-in welcome text you can change.
Replace this text... Welcome to our site! We're thrilled to have you. Get ready to embark on a journey of transformation and personal growth. Let's unlock your full potential together.
Optionally add any other elements you want like LinkTree, social media icons and links, etc.
//====================================================
if ($config46 == "yes") { //config46 is showing classes yes/no - skip this if classes is set to false
$i = 0;
$visibleStatus = "visible";
// Attempt select query execution
try{
$stmt = $pdo->prepare("SELECT * FROM classes WHERE id > 1 AND visibility = ? order by className asc");
$stmt->execute([$visibleStatus]);
// $stmt = $pdo->prepare("SELECT * FROM classes WHERE id > 1 order by className asc");
// $stmt->execute();
$databasePointerArray8 = array();
$titleArray8 = array();
$urlArray8 = array();
$classImagesArray8 = array();
while ($row = $stmt->fetch()) {
//This while loop is based on the logic from "selecting multiple rows" section here - https://phpdelusions.net/pdo_examples/select
$databasePointerArray8[$i] = htmlentities($row['id'], ENT_QUOTES,"UTF-8");
$titleArray8[$i] = htmlentities($row['className'], ENT_QUOTES,"UTF-8");
$urlArray8[$i] = htmlentities($row['classURL'], ENT_QUOTES,"UTF-8");
$classImagesArray8[$i] = $row['classImage']; //content in this instance is the blog title.
$i++; //increment pointer
}
} catch(PDOException $e){
die("ERROR: Could not able to execute $stmt. " . $e->getMessage());
}
// Close connection
//unset($pdo);
if($i >= 1) { //only show classes if there are classes to show
echo "
";
echo "
Courses
";
}
$num8 = count($databasePointerArray8);
$col = 1; //1 to 3
for($i=0; $i < $num8; $i++) //limit to small number
{
// echo "DEBUG " . $titleArray8[$i] . "
";
$myID = $databasePointerArray8[$i];
$myTitle = $titleArray8[$i];
$myImage = $classImagesArray8[$i];
$myURL = $urlArray8[$i];
if($col==1) { //if col is 1 then create a new row div
echo '
';
}
echo "
'; //end of span 4
$col++;
// echo "DEBUG $col
";
if($col==4)
{
$col = 1;
//echo "DEBUG if col4 $col
";
echo '
'; //end of div row fluid
}
} //end of for loop
echo '
'; //end of row fluid
//echo "