DATE and TIME

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

Post Reply
glennalmeda
Forum Newbie
Posts: 14
Joined: Mon Jan 26, 2004 9:00 pm

DATE and TIME

Post by glennalmeda »

I have a question.

Im doing online ordering using php n sql which is in a first come first serve basis. Our computers have different date and time, but i dont want to use the system date of the pc's because its not reliable, so i want to set 1 DATE and TIME for all user's trying to access the site. Can someone help me with my problem.. thanks...
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

just use the date() function.

This will use the time of the SERVER, not the clients PC

Mark
Post Reply