Link to home
Start Free TrialLog in
Avatar of aej1973
aej1973

asked on

How do I capture the system date in PHP/MySQL?

I have 2 forms. The data from form 1 gets captured in form 2 when I press submit in form 1. I have a table in form 2 which should be automatically populated with the system date. How can this be done?
Thanks,
A
ASKER CERTIFIED SOLUTION
Avatar of gamebits
gamebits
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BogoJoker
BogoJoker

Hi aej1973,

Or just time();
$currentTime = time();

Joe P
Avatar of aej1973

ASKER

Hi gamebits & Joe,
<? echo date('l dS \of F Y h:i:s A');  ?> works. None of the other suggestions do, though.
Thanks for the points and the grade.

Gamebits
Avatar of aej1973

ASKER

You are welcome and thank you for the help.