Shop Chicago

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

Shop Chicago

$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)
{
?> } else
{
?>Second City Style - Shop Chicago

$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) )
{
?>

if ($lastCompany != $contact->company) {
$lastCompany = $contact->company ;
?>
company ?>

} ?>
address ?>

city ?> zip ?>

phone ?>

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

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

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