Questions

PHP conditions

Tags:
+
0 Votes
Locked

PHP conditions

sush.rd
i get orders from database which contain order_date.
if i take a order_date of a particular order as $order_date.
    $order_date= $row['order_date']  ;   


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

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