Php

Reply

Join Date: Sep 2007
Posts: 1
Reputation: kyandebishop is an unknown quantity at this point 
Solved Threads: 0
kyandebishop kyandebishop is offline Offline
Newbie Poster

Php

 
0
  #1
Sep 17th, 2007
I have writen a script to display a daily devotion every day and stored the message in the Mysql database. i am in the Central time zone but our server seems to be in Pacific time zone. I hosted the site with some guys godaddy.cm. The problem is the message will change two hours after midnight. i have phpMyadm but I do not know how to set CURDATE() to return the cetral time.
any help appreciated.
I am an intermediate level skillwise
kyan
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 142
Reputation: MitkOK is an unknown quantity at this point 
Solved Threads: 12
MitkOK's Avatar
MitkOK MitkOK is offline Offline
Junior Poster

Re: Php

 
0
  #2
Sep 18th, 2007
Why do you need CURDATE() if you want to get time ?

CURDATE() returns you the date part of the mysql server's datetime
Last edited by MitkOK; Sep 18th, 2007 at 6:28 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC