|
||||
PHP Get Time Function - Easily convert mysql datetime to user friendly output.
PHP get make time function - convert mysql datetime day month year hour minute second Added: 2008-05-19 08:49:02 I always have a bit of a nightmare with Datatime and Timestamps. I have come up with a simple function for converting a datatime into a more user readable version. function gettime($gettime,$ops=0) { The function can contain an argument: <? gettime($row['mysql_datetime'],1); //This will display the full Time and Date entered in the Mysql Database; ?> <? gettime($row['mysql_datetime'],0); //This will display the Time entered in the Mysql Database; ?>
Copyright MySpaza.Co.Uk - 2010
|
||||
Comments from other users: