\'New branch\' order by id'; $query = 'select id, address, address_descr, city, zip, phone, rest_id from rest_address order by id'; if (!($res = mysql_query($query, $conn))) showerror(); while ($row = mysql_fetch_assoc($res)) { extract($row); $locations[$rest_id][$id] = array($address, $city, $zip, $phone); } #pprint("agencies"); #print_arr($restaurants); #pprint("offices"); #print_arr($locations); ?> Grants Pass Daily Courier -- Restaurant Guide Administration
$restaurant_name) { // $bgc = ($bgc == '#e9e9e9') ? '#ffffff' : '#e9e9e9'; echo " ' . "\n" . '' . "\n"; } ?>
show Click Thru Reporting show Restaurant guide
 Restaurant name  [ Add a new restaurant  Location 
 $restaurant_nameX "; foreach($locations[$restaurant_id] as $location_id => $aarr) { $str = ''; $tarr = array(); foreach($aarr as $val) { if ($val) { $tarr[] = $val; } } $str = implode(', ', $tarr); $query = (count($locations[$restaurant_id]) == 1) ? "r=$restaurant_id" : "l=$location_id&r=$restaurant_id"; echo " $str"; if (count($locations[$restaurant_id]) > 1) { echo "X"; } echo "
"; } echo ''; echo '
 [ Add a new restaurant Map numbers have been updated.

'; } else { echo ' '; } ?>