Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting today's date to a mysql table 1

Status
Not open for further replies.

annasue

Technical User
Mar 20, 2004
21
0
0
US
I am very new to php and mysql and I know this is simple but I've searched the site as well as the site and can't locate the answer.

I have one of my fields in my table set to a date field. I cannot determine how to write today's date to it.

Thanks in advance.
 
Please disregard the previous post; I just found the answer.
 
cheat and make mysql write if for you:)
UPDATE sometable set somefield = curdate();

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top