This is a function to convert the MySQL TIMESTAMP type to a human readable format. Use for date, time, or time w/ seconds. I'm not a coding Jedi (yet) so gimme a break, eh?
<?php
function timestamp_convert($timestamp, $type){
/*-----------------------------------------
php procedure to convert MySQL TIMESTAMP to a human readable format
usage is "timestamp_convert($timestamp, $type)"
$timestamp is the TIMESTAMP field of interest
$type is one of 'date', 'time', or 'ptime'
'date' returns "dd.Mmm.yyyy"
'time' returns standard hh:mm a.m/p.m
'ptime' returns hh:mm:ss a.m/p.m time
example use: "echo timestamp_convert($myrow["date"], date);"