ngreenwood6 Posted December 5, 2008 Share Posted December 5, 2008 I have got the date formatted but now I cannot get the time with the time() function from the database. I have this code: echo time("h:i:s", $row['date']); but it is just displaying it as a timestamp. please help. Link to comment https://forums.phpfreaks.com/topic/135680-solved-time-question/ Share on other sites More sharing options...
gevans Posted December 5, 2008 Share Posted December 5, 2008 I have got the date formatted but now I cannot get the time with the time() function from the database. I have this code: echo time("h:i:s", $row['date']); but it is just displaying it as a timestamp. please help. <?php //time() should be date() echo date("h:i:s", $row['date']); ?> Link to comment https://forums.phpfreaks.com/topic/135680-solved-time-question/#findComment-706906 Share on other sites More sharing options...
ngreenwood6 Posted December 5, 2008 Author Share Posted December 5, 2008 Thank you for the help. Link to comment https://forums.phpfreaks.com/topic/135680-solved-time-question/#findComment-706910 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.