Jump to content

[SOLVED] return a specified range from database


rkstevens

Recommended Posts

My database table has two values:

PostDate that contains a timestamp when the record can be displayed

RemoveDate contains the timestamp when the record can no longer be displayed

 

The query:

$newsquery = "SELECT * FROM News WHERE ((PostDate < 'time()') AND (RemoveDate > 'time()')) ORDER BY PostDate DESC";

 

returns 0 records, when there are ones that are within the range.

I guess I have something wrong.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.