Promotions

= date(now()) AND code = ‘”.$_POST[‘promo’].”‘”)
or die(mysql_error());

$num_rows = mysql_num_rows($result);

if (empty($num_rows)) {
die(“Promo code is not found or has expired. Where are you getting your info? Should they be trusted?”);
}

// store the record of the query into $row for display throughout the table below
$row = mysql_fetch_array( $result );

// Print out the contents of the entry
echo “Promo Code: “.strtoupper($_POST[“promo”]).”“;
echo “
Description: “.$row[‘description’].”“;
echo “
“;

?>