View Single Post
Old 11-14-2012, 02:23 PM   PM User | #1
Jodzzz
New Coder

 
Join Date: Nov 2012
Posts: 16
Thanks: 2
Thanked 0 Times in 0 Posts
Jodzzz is an unknown quantity at this point
Trying to display a div if date is today or greater

Hi Guys,

I'm a novice at this and i'm bloody stuck!

Basically i want to display a div if theres a record in a table from either todays date or in the future.

Here comes my very bad code.....

Code:
<?php
			// Retrieve Weekly Special Rate
			$week_special_rate = exc_db_query("SELECT week_special_rate FROM calendar_weeks");
			$week_special_rate_array = exc_db_fetch_array($week_special_rate);
			?>

			<?php
			// Show Last Minute Deals button only if there are any deals to display at a date greater than current day
			if ($week_special_rate > '0') { ?>
				<article class="homefocusbox lastminbox">
					<div class="focus_box_overlay">
						<h3>Last Minute</h3>
						<p>For details of our<br />current last minute<br />deals</p>
						<p><a href="last-minute.php">Click here...</a></p>
					</div>
				</article>
			<?php } ?>
Jodzzz is offline   Reply With Quote