NOW() ;"; $result = mysqli_query($GLOBALS['conn'],$query) ; $row = mysqli_fetch_array($result); //echo $row; if ($row['percentdiscount'] > 0) { //echo "hello"; $_SESSION['promodiscount']=$row['percentdiscount']; $_SESSION['promocourses']=$row['courses']; $startdate=$row['startDate']; $enddate=$row['endDate']; $coursearray=explode(' ',$_SESSION['promocourses']); $resultstuff=$resultstuff."
Promo Code: {$promoinput} Start Date: {$startdate} End Date: {$enddate}
{$_SESSION['promodiscount']} percent discounts are active for this session on the following courses:

"; //$resultstuff=$resultstuff."hello there"; if (strtolower($_SESSION['promocourses'])=='z') { $resultstuff=$resultstuff."
All courses
"; } else { foreach ($coursearray as $thiscourse) { $query = "SELECT * FROM courses where itemnumber = '{$thiscourse}';"; $result = mysqli_query($GLOBALS['conn'],$query) ; $row = mysqli_fetch_array($result); $itemname=$row['itemname']; $resultstuff=$resultstuff."
{$itemname}"."
"; } } } else { unset($_SESSION['promodiscount']); unset($_SESSION['promocourses']); $resultstuff="
Invalid code or promotion not active
"; } } //include("footer.html"); //echo $_SESSION['promocourses']; //echo getpromodiscount('a'); ?>
Promotional Offers

Folio Academy occasionally offers promotional prices on selected courses.  Type in your promo code below and click the "activate" button to activate the promotional prices.




Input Promo Code: