I am trying to write a simple piece of code that will tell a user when they can expecta product to be delivered depending on the day and the time. If it is a week day and before 14:00 then they can expect the product the next day. If it is past 14:00 then it will be in two days time. The weekends are different because of no post on sunday.
The following code displays everyhting no matter what day it is. I then changed it all to "elseif" statements but now it only ever says the expected delivery day is Tuesday.
<?php
//Supplies a delivery date as an included file on product_info.php
$date = date(l);
$time = date(H);
if ($date = Monday and $time < 14) echo "Expected delivery day is Tuesday";
if ($date = Monday and $time > 14) echo "Expected delivery day is Wednesday";
if ($date = Tuesday and $time < 14) echo "Expected delivery day is Wednesday";
if ($date = Tuesday and $time > 14) echo "Expected delivery day is Thursday";
if ($date = Wednesday and $time < 14) echo "Expected delivery day is Thursday";
if ($date = Wednesday and $time > 14) echo "Expected delivery day is Friday";
if ($date = Thursday and $time < 14) echo "Expected delivery day is Friday";
if ($date = Thursday and $time > 14) echo "Expected delivery day is Saturday";
if ($date = Friday and $time < 14) echo "Expected delivery day is Saturday";
if ($date = Friday and $time > 14) echo "Expected delivery day is Monday";
if ($date = Saturday and $time < 14) echo "Expected delivery day is Monday";
if ($date = Saturday and $time > 14) echo "Expected delivery day is Tuesday";
if ($date = Sunday) echo "Expected delivery day is Tuesday";
?>
Thanks for any help