Karl Blessing
Programmer
I have made the switch from an ASP/Access site, to a PHP/MySQL site, the queries I've used thus far seem to work ok , all except for one. I have a query that pulls back records no older than 2 days from the latest record. The kind of syntax I have been using is :
[tt]
Postings where PostDate >= (Select Dateadd("d", -1, Max(PostDate)) From Postings)
[/tt]
above would pull back 1 days worth of records from the latest record. Is there a way I can do this in MySQL?
(also if you know PHP what method would I use if I wanted to pull back 2 days, but have PHP seperate the days when I hit a new date) Karl Blessing aka kb244{fastHACK}
[tt]
Postings where PostDate >= (Select Dateadd("d", -1, Max(PostDate)) From Postings)
[/tt]
above would pull back 1 days worth of records from the latest record. Is there a way I can do this in MySQL?
(also if you know PHP what method would I use if I wanted to pull back 2 days, but have PHP seperate the days when I hit a new date) Karl Blessing aka kb244{fastHACK}