Ive got this script that adds some stuff into a database and when it does this one of the fields is set to TIMSTAMP so that it will put in the current time...
But i dont understand how to then use it. Because timestamp is just a bunch of numbers, 8 i think. How do I put that into the real time format. eg:
I can help you here, basically if i remember rightly you need to convert the timestamp data, first fetch the info from the database, ill call the field with the timestamp 'time' and the variable that fetch's it ill call $grab, now this is the code you need:
$date = date("d/m/Y G:i:s","$grab[time]");
and so when the $date variable is called it will display something like: 20/1/2005 23:54:05
Comments
$date = date("d/m/Y G:i:s","$grab[time]");
and so when the $date variable is called it will display something like: 20/1/2005 23:54:05
- Hoped this helped.
The Royal Ram
then you can call it using
and this the style it displays "2005.01.25 - 9:05 PM".
you can format the $formated variable to your liking.
-Dan
Daniel L. Rust - Lead Architect
Seattle, WA
The Royal Ram