Page 1 of 1

add time stamp to a post?

Posted: Fri Jul 01, 2005 1:33 am
by suha
Script URL:
Version of script:
Version of PHP:
Hosting company:
Have you searched THIS FORUM for your problem:
(if not please do before posting)
If so, what terms did you try:

Write your message below:

Hi, GBook is very easy to config. It works just fine. Thank you for the great job!

Now i like to show the time stamp as well to each post on the guestbook. I find the code for the "date" stamp

Code: Select all

$added=date ("F j, Y");
I guess maybe there is a similar code like "time (???)". But I'm not sure. Anyone can help? Thank you in advamce.

Got it

Posted: Fri Jul 01, 2005 6:25 am
by suha
Thanks

Posted: Fri Jul 01, 2005 9:55 am
by Klemen
Hi,

Try this:

Code: Select all

$added=date ("F j, Y \a\t H:i:s");
Regards

Posted: Mon Jul 04, 2005 12:35 am
by suha
It works. Thank you very muck.

Posted: Sat Nov 26, 2005 9:03 am
by Rasmus
Hi.

I also changed the code but it didn't work for me.

$added=date ("F j, Y \a\t H:i:s");

But after i removed a and t it worked.

$added=date ("F j, Y H:i:s");

Rasmus Christensen.

Posted: Sat Nov 26, 2005 1:46 pm
by Klemen
Hi,

Make sure you don't forget the \ before a and t!

\a\t - correct

at - WRONG!

But without the \a\t it will also work of course.

Regards