GAstrada
Programmer
- Sep 20, 2000
- 97
Hello all.
I'm very new to php and have a Mysql table with a datetime field, (filled with now() ), a lot of records new every hour.
My question:
My clients want to fill a html form in where they write how many hours ago they want to view records, (last 1 hour, last 2 hours, etc.). Of course no problem to enter this variable in a php script.
But I don't know how to make such "restrictive" query.
Any help will be appreciated.
Thanks in advance.
gus
I'm very new to php and have a Mysql table with a datetime field, (filled with now() ), a lot of records new every hour.
My question:
My clients want to fill a html form in where they write how many hours ago they want to view records, (last 1 hour, last 2 hours, etc.). Of course no problem to enter this variable in a php script.
But I don't know how to make such "restrictive" query.
Any help will be appreciated.
Thanks in advance.
gus