Home > Latest Supplement Offers

Latest Supplement Offers

= `start` AND $today <= `end` ORDER BY `end` ASC"); // All that have started - SELECT * FROM `promos` WHERE $today >= `start` ORDER BY `start` DESC
while($get=mysql_fetch_array($current)){
$id = $get[‘id’];
$headline = $get[‘headline’];
$logo = $get[‘store_logo’];
$start = $get[‘start’];
$end = $get[‘end’];
$type = $get[‘type’];
$voucher = $get[‘code’];
$out = $get[‘url’];
$out= trim(preg_replace(‘/\s\s+/’, ‘ ‘, $out));
$out= urlencode($out);

$encoded = array(“%3A”, “%2F”);
$actual = array(“:”, “/”);

$out = str_replace($encoded, $actual, $out);

$startformatted = jdtogregorian($start);
$endformatted = jdtogregorian($end);
$end1 = $get[‘end’];
$daysleft = $end1 – $today;

$start = explode(“/”, $startformatted);
$startday = $start[1];
$startmonth = $start[0];
$startyear = $start[2];
$start = “$startday/$startmonth/$startyear”;

$end = explode(“/”, $endformatted);
$endday = $end[1];
$endmonth = $end[0];
$endyear = $end[2];
$end = “$endday/$endmonth/$endyear”;
?>

” rel=”bookmark” title=”“>

Start: $start – Expires: $end”; ?> DAYS LEFT!

” class=”actualCode”>
.