[PHP-DB] subtracting times

2003-03-08 Thread David Rice
I know I asked this before buy no-one gave me an answer i was looking for, I want to subtract two times and the ammount of hours worked to 2decimal places (3.41 hours) cheers, dave _ Use MSN Messenger to send music and pics to

Re: [PHP-DB] Subtracting times?

2001-06-24 Thread Hugh Bothwell
Matthew Cothier [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I really need help here. What I am trying to do is the following. Which database are you using? What format is it returning the date and time in (string or integer)? It may be simpler to

[PHP-DB] Subtracting times?

2001-06-23 Thread Matthew Cothier
I really need help here. What I am trying to do is the following. - $today = date(m.d.y); $time = date(g:i a); if($row[3] == $today){ if(($row[4] $time) and ($time $row[6])){ print(Now Showing); } else { print(Today at $row[4]); } }

Re: [PHP-DB] Subtracting times?

2001-06-23 Thread Ted Rolle
check out http://www.php.net/manual/en/function.mktime.php If you still need assistance, I'm here. On Sun, 24 Jun 2001, Matthew Cothier wrote: I really need help here. What I am trying to do is the following. - $today = date(m.d.y); $time = date(g:i a); if($row[3] ==