one more time.
$today = "2008-08-27";
$start_date = "2008-08-30";
//Start date Check
if (strlen($start_date) > 0)
{
$comp_today = strtotime($today);
$comp_start = strtotime($start_date);
print "$comp_today <br> $comp_start <br>";
if ($comp_start > $comp_today)
{
$display = "<p align = \"Center\"><font size=\"3\" face=\"Arial, Helvetica, sans-serif\"><font color=\"#003399\"> <ul> <li>You cannot search for articles beyond Today.</li><br /> </ul> </font></p>";
}
else
{
$sql .= " WHERE(`date` = '$start_date')";
}
}
result $dispaly is populated with the string above.
$today = "2008-08-27";
$start_date = "2008-08-20";
//Start date Check
if (strlen($start_date) > 0)
{
$comp_today = strtotime($today);
$comp_start = strtotime($start_date);
print "$comp_today <br> $comp_start <br>";
if ($comp_start > $comp_today)
{
$display = "<p align = \"Center\"><font size=\"3\" face=\"Arial, Helvetica, sans-serif\"><font color=\"#003399\"> <ul> <li>You cannot search for articles beyond Today.</li><br /> </ul> </font></p>";
}
else
{
$sql .= " WHERE(`date` = '$start_date')";
}
}
$sql has the sting above added to it.
theres results are exactly what i would expect, so what's the problem?