On 11-Apr-2004 Ryan A wrote:
> 
<snipage>

> If you are using timestamp(14), here is how i do it: (after
the
> select)
> 
> if(($row = mysql_fetch_row($result))>=1)
>     {
>   $d_year = substr($row[4],0,4);
>   $d_month = substr($row[4],4,2);
>   $d_day = substr($row[4],6,2);
>   $d_hours = substr($row[4],8,2);
>   $d_mins = substr($row[4],10,2);
>   $d_secs = substr($row[4],12,2);
> }

Ugh!

list($y, $m, $d, $h, $i, $s) = split('[-:/. ]', $row[x]);



-- 
Don Read                                     [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to