Jump to content

[SOLVED] getting the difference between a time and system time


Vidya_tr

Recommended Posts

I had an array on the above code you posted:some error on the parameters of mysql_fetch_array:

 

but got it like this.... :)

<?php
$query = "SELECT timediff('2009-04-30 14:40:00',sysdate()) as timedifference";
$queryResult = mysql_query($query);
list($timedifference) = mysql_fetch_row($queryResult);
?>

 

thanks.....

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.