Jump to content

Ignore Certain Records Based On Date


barryflood22

Recommended Posts

i have a script which populates all listings in a table and echo's them as nicely laid out records on the front end.

 

i want it to ignore all records which has had its "enddate" passed,

 

below is what i have

 

$sql = "SELECT * FROM $tbl_name ORDER BY dateposted DeSC LIMIT $start, $limit";
$closingdate ="enddate";

 

i want to add something like

 

if $closingdate < todaysdate then ignore;

 

 

any ideas?

Link to comment
https://forums.phpfreaks.com/topic/269587-ignore-certain-records-based-on-date/
Share on other sites

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.