I need to make a Registration show hide based on whether you are > 48 hours or =< 48 hours out...
I wrote this before based on a start and end time...
<?php
$startdate = $row_product['startdate'];
$enddate = $row_product['enddate'];
$todays_date = date("Y-m-d");
if ($enddate <= $todays_date) {
header('Location: expired.php');
}
else{
}
if ($startdate > $todays_date){
header('Location: notyet.php');
}
else {
}
?>
Can I do math in the $enddate like $row_product - 48:00:00; or something?
OR, should I add a row to the table that is LastAvailable and compare the 2 rows? Start and lastavailable???
Am I on the right track?
Ted