Below is the code i have so far, any help would be appreciated.
Thanks Jane x
<?php
include ('dbConn.php');
mysql_select_db($dbselect, $con);
$Query = mysql_query("SELECT program_name FROM program_names") or die (mysql_errno() . ": " . mysql_error(). "\n");
echo '<label>Select Store:</label>';
echo '<select id="program_name" name="program_name">';
echo '<option value="View All">View All</option>';
while ($row = mysql_fetch_assoc($Query))
{
$va = $row['program_name'];
echo "<option value='$va'>$va</option>";
}
echo '</select>';
$Query = mysql_query("SELECT * FROM offers1 WHERE program_name = '$va'") or die(mysql_error());
while($result=mysql_fetch_assoc($Query)) {
include ('variables.php');
echo"
<div class='spacerbox'>
<div class='outerbox eviecodes'>
<div><div class='topbox'>
<div class='leftbox'>
<div class='offerimage'>
<div class='progdiv'><a class='progname' href=".$url." target='_blank'>".$program_name."</a></div>
</div>
</div>
<div class='rightbox'><div class='descbox boxwidth'><h1>
<a href=".$url." target='_blank'>".$description." at ".$program_name."</a></h1></div>
<div class='voubox boxwidth'><h2 class='vvv'>Voucher Code:<span class='vcode'>".$code."</span ></h2></div>
</div>
</div>
<div class='linkbox boxwidthl'>
<a href=".$url." target='_blank'>To Take Advantage of this offer at <span class='prodname'>".$program_name."</span>, click here!</a>
</div>
<div class='expires'>
<span class='end'>Expires:</span> <span>".$dateformat."</span >
</div>
<div class='socialbox'>
{module Tell A Friend Module}
</div></div>
<div class='spacer'>
</div>
</div>
</div>
";
}
?>

New Topic/Question
Reply



MultiQuote





|