CURRENT_TIMESTAMP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
brmcdani
Forum Newbie
Posts: 17
Joined: Wed Sep 02, 2009 8:21 pm

CURRENT_TIMESTAMP

Post by brmcdani »

When I enter CURRENT_TIMESTAMP in for my default value it gives me an invalid default value for 'edit time'

Anyone know what I can enter in to make this go away?
turburator
Forum Newbie
Posts: 1
Joined: Thu Oct 08, 2009 12:57 am

Re: CURRENT_TIMESTAMP

Post by turburator »

If you need to get the current timestamp you use:

time();

Regards
John
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: CURRENT_TIMESTAMP

Post by pickle »

Double post.

Locked.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Locked