Question Locked

PHP conditions

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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]

1 reply

This discussion is closed to new replies.