Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use of Timestamp to produce a list.

Status
Not open for further replies.

BadChough

Programmer
Dec 20, 2007
137
0
0
GB
I want to summonds to a page a list of people whose MSQL records have been updated since a certain date.

So I enter the date and the names are returned.
I have a timestamp field already on the relevant table, but have never known quite how to make use of it.
I am using Dreamweaver MX2004 and have a little experience with php/MYSQL.
 
Code:
select * from tablename where dateColumn >= date_sub(now(), interval 1 month)
i believe that this query will return records whose timestamp (datecolumn) is less the one month old.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top