X

Shop Chicago

global $base_url; $letter = $_REQUEST["a"]; if (!$letter) { $letter = 'a'; } ?>

$letters = array("A","B","C","D","E","F","G","H","I","J","K","L","M", "N","O","P","Q","R","S","T","U","V","W","X","Y","Z"); foreach ($letters as $ltr) { if ( strtoupper($letter) == $ltr) { ?>= $ltr ?> } else { ?>
= strtoupper($letter) ?>

$sql = "select * from contact_directory where company like '$letter%' order by company"; $result = db_query($sql) ; $count = db_num_rows($result); $x = 0; $break1 = floor($count/3) -1; $hit1 = false; $break2 = floor($count/1.5) -1; $hit2 = false; $lastCompany = ""; while ($contact = db_fetch_object($result) ) { ?>

company) {
$lastCompany = $contact->company ;
?>
= $contact->company ?>
} ?>
= $contact->address ?>
= $contact->city ?> = $contact->zip ?>
= $contact->phone ?>

$break1 && ! $hit1) {
$hit1 = true;
?>

} if ($x > $break2 && ! $hit2) {
$hit2 = true;
?>
} $x++; } ?>

Are you missing from our list? Please let us know!

Facebook Comments