Hello everyone! This is regarding PHP & MySQL.
I'm creating a web form for users to enter their comments and submit the form which will add the comments to a MySQL table. I would then be able to access an admin form that will allow me to retrieve the submitted records of comments.
My Questions:
In the web user's form how can I automatically insert the date & time that they submitted the comment into a column or columns (date & time in one field or separate fields) of the database record?
In the admin form how can I be able to search for submitted comments by specific date and date ranges (using entry fields) or by pre-determined date ranges (last 7 days, last 14 days, last 30 days, last 2 months, etc.. using a pop down menu)? Note: I would not need to search by time, but would like records sorted by date & time.
Finally, when the results are retrieved on both the list as well as the detailed record page, how can I display the date and time that was automatically inserted so that it displays in a readable format (Sat. Jan. 5, 2002, 3:15 PM)?
Many thanks to anyone who can help me with this!
- Steve
Just incase you need to know.. my current setup is:
Solaris 2.7 release 05/99
Apache 1.3.3
MySQL Version 11.15 Distribution 3.23.43
PHP 4.1.0 Apache Module