$link = mysql_connect('localhost', 'vanilla', 'uc0bnj1o3'); if (!$link) { print '

Could not connect

'; } $res = mysql_db_query('hudicecream', $query, $link); if (!$res) { print '

We had a small problem. Could you please try again?

'; } print "

Here are the {$vars['max']} stores nearest to you:

"; print '

Search Again

'; print ''; print ''; print ''; while ($row = mysql_fetch_assoc($res)) { if ($color == "#fff") $color = "#ccc"; else $color = "#fff"; print ''; print ""; print ""; print ""; print ""; print ""; } print '
NameAddressPhoneDistance
{$row['name_description']}{$row['store_address']}
"; print "{$row['city_name']}, {$row['city_state']} {$row['store_zip']}
{$row['store_phone']}{$row['distance']} miles
'; } print "
"; }