Forum Moderators: coopster
Here is my code:
<?php echo time( $details[ 'last_updated' ], 'g:i a');?>
Since I am still learning PHP, I think I screwed my code up.
Basically, I am trying to display the time that a blog was last updated, from a table in a database. last_updated being the table details. And I want to display the time information with the structure of g:i a.
Do you see where I went wrong?
Thanks,
Christian
SELECT *,DATE_FORMAT [dev.mysql.com](last_updated,'%H:%i %s') AS new_date FROM table...
echo $details['new_date'];
dc