FSBOLeader - The Leader in "For Sale By Owner" Lead Generation

888.678.FSBO(3726)

300,000+ leads in our database


query("SELECT * FROM state_totals ORDER BY country, name"); while ($res->fetchInto($row, DB_FETCHMODE_ASSOC)) { $states[] = array('state_id' => $row['id'],'state_name' => $row['name'], 'country' => ($row['country'] == 1?'United States':'Canada'), 'total' =>$row['total']); } $i = 0; $total = 0; $arrSize = count($states) / 3; $oldCountry = ''; //echo "$arrSize
"; foreach($states as $aState){ $country = $aState['country']; $stateId = $aState['state_id']; $stateName = $aState['state_name']; $count = $aState['total']; if($stateName == 'Prince Edward Island') $stateName = 'Prince Edward
Island'; if($stateName == 'District of Columbia') $stateName = 'District of
Columbia'; if($count > 0){ $ci = floor($i / $arrSize); //($arrSize / ($i+1)); //echo "$ci
"; $links[$ci % 3] .= "$stateName ($count)
\n"; $i++; $total += $count; } } echo "

All Areas Covered ($total)


\n"; ?>



*numbers in parenthesis represent leads found in the last month