Wells-it.com - Web Hosting

Inserting Date into MySQL DB using PHP

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

They have: 27 posts

Joined: Aug 2001

I have a datetime var in my MySQL database and would like to insert the current time using a built in PHP function or setting the default value as a built in MySQL funtion if possible.

I have to use phphMyAdmin for my MySQL database and everytime I type in Now() for the default it just sets the date to 0000-00-00 00:00:00.

Thanks,

Mark

They have: 27 posts

Joined: Aug 2001

Nevermind, I wrote NOW() instead of NOW('') Smiling