WmZilla - Webmaster and Marketplace

The Next Generation Webmaster and Trade Forum

I need help with TIMEDIFF.

0

0%

Status

Offline

Posts

33

Likes

0

Rep

0

Bits

175

8

Months of Service

0%
Hello, I have a sales table in my database with a date record in the gold. I automatically record this date with the timestamp and current time when the order is created. I need to give the customer a deadline to make a payment for the ordered product. I tried the following command but couldn't get it to work (due to my inexperience :) I'm looking for support from friends who are knowledgeable on the subject.
I tried the following, but couldn't get it to work (due to my inexperience) :) I'm waiting for support from friends who are experienced in this topic.
$kalan_sure = $db->query("SELECT TIMEDIFF(NOW(), date) FROM orders")->fetch(); echo "Remaining Time: ".$kalan_sure;
 

254

6,645

6,665

Top