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
aej1973Asked:
Who is Participating?
 
gamebitsCommented:
<? NOW() ?>

or <? echo date('l dS \of F Y h:i:s A');  ?>

Gamebits
0
 
BogoJokerCommented:
Hi aej1973,

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

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

Gamebits
0
 
aej1973Author Commented:
You are welcome and thank you for the help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.