assuming the timestamp is in this format (which i believe is default for mysql): 2002-03-16 05:10:34
you could do:
$my_timestamp = $row["timestamp"];
list ( $date_string, $time_string ) = explode (" ", $my_timestamp);
list( $my_year, $my_month, $my_day ) = explode ("-", $date_string);
list( $my_hour, $my_minute, $my_second ) = explode (":", $time_string);
the variables you want would then be $my_year, $my_month, $my_day, $my_hour, $my_minute and $my_second.
Hope this helps.
-Jim Keller
http://www.centerfuse.net