PHP conditions - TechRepublic
Question
July 15, 2012 at 06:21 AM
sush.rd

PHP conditions

by sush.rd . Updated 13 years, 11 months ago

i get orders from database which contain order_date.
if i take a order_date of a particular order as $order_date.
[code] $order_date= $row[‘order_date’] ; [/code]

how do i write the condition which checks if $order_date is less than 2 days

[code] if (condition check $order_date is less than 2 days ) {
do this;
}
else { do that; }
[/code]

This discussion is locked

All Comments