Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 03:11:08 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Guestbook database time  (Read 692 times)
wagemansf

Offline Offline

Posts: 22


« on: May 02, 2008, 03:57:56 PM »

I want to change some data in the database (sql mod_guestbook --> posted when) but this is not an normaly date stamp. It's a code?

How can i change data in here?

Frank
Logged
thorn

Offline Offline

Posts: 980


WWW
« Reply #1 on: May 02, 2008, 05:34:03 PM »

Hello,

it's a unix timespamp.
Have a look at php's time() and date()-functions.

thorn.
Logged

wagemansf

Offline Offline

Posts: 22


« Reply #2 on: May 03, 2008, 08:25:22 PM »

Where can i find that?
Logged
aldus

Offline Offline

Posts: 1238


« Reply #3 on: May 04, 2008, 11:02:10 AM »

As for Time:
http://de.php.net/manual/en/function.time.php

As for Date:
http://de.php.net/manual/en/function.date.php

I would prefer "strftime"
http://de.php.net/manual/en/function.strftime.php

in combination of "setlocale"
http://de.php.net/manual/en/function.setlocale.php

Regards
Aldus
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!