|
what do you mean to retain ads 180 days after they are closed??
If an ad expires it should be marked like so which means it will not show
// Close out expired ads
$query = "UPDATE {$Globals['pp_db_prefix']}products SET approved=2,status='$today' WHERE enddate < $today AND isauction=0";
$result = ppmysql_query($query,$link);
then in showcat where ads are shown see approved=1
$query .= "WHERE approved=1 $catcheck AND date > $searchdate $exclude_cat $sortcode";
So your losing me here saying you have it set to show 180 days after. Once an ad expires you should delete it or relist it
|