$'.$i.'.00'."\n"; $maxRent = ''."\n"; $selected = ''; while($i<= 2900){ $i = $i+100; $minRent .= ''."\n"; if($i == 3000){ $selected = ' selected="selected"'; } $maxRent .= ''."\n"; } ?>
RentRacine.com
logged_in){ ?>
  Rental Type   Bedrooms  
     
  Rent Minimum   Rent Maximum  
     
  Section 8 Housing   Pets  
     
Zip Code
  Show all my Ads
 
logged_in){ ?> Logout | My Account isAdmin()){ echo " | Admin Center"; } ?>
'yes'"; if($session->logged_in && $session->isAdmin()){ echo ''; } $mysqldb->query($query); if($session->logged_in && $session->isAdmin()){ echo ''; } while ($row = $mysqldb->fetchObject()) { // send out notificiation email if($session->logged_in && $session->isAdmin()){ echo ''; } $email = $row->email; $message = "Your ad for address ".$row->address." will become inactive in 5 days
Click here to reactivate it for 30 more days"; if($session->logged_in && $session->isAdmin()){ echo ''; } mail($email, "Subject: Ad Expiring", $message, "MIME-Version: 1.0\r\nContent-type:text/html;charset=iso-8859-1\r\nFrom: Admin@SWLA" ); $query2 = "update listings set noticeSent='yes' where id='".$row->id."'"; if($session->logged_in && $session->isAdmin()){ echo ''; } $mysqldb2->query($query2); } // this checks for the ads that have expired $query = "select * from listings a, users b where a.expiryDate < date_sub(curdate(), interval 30 day) and a.active = 'yes' and a.owner = b.username"; if($session->logged_in && $session->isAdmin()){ echo ''; } $mysqldb->query($query); while ($row = $mysqldb->fetchObject()) { // send out notificiation email $email = $row->email; $message = "Your ad for address ".$row->address." has become inactive
Click here to reactivate it for 30 more days"; mail($email, "Subject: Ad Expired", $message, "MIME-Version: 1.0\r\nContent-type:text/html;charset=iso-8859-1\r\nFrom: Admin@SWLA" ); $query2 = "update listings set active='no' where id='".$row->id."'"; if($session->logged_in && $session->isAdmin()){ echo ''; } $mysqldb2->query($query2); } ?>