echo "<h3><a href='restaurant.php?rID={$row['0']}'>{$row['1']}</a></h3> ";
    ?>
 
            <?php 
    echo "<h5>Ottawa, Ontario, Canada </h5>";
    ?>
            <?php 
    echo "Restaurant Style: {$row['2']} ";
    ?>
 <br />
            <?php 
    echo "Restaurant Website: <a href='http://{$row['3']}'>{$row['3']}</a> ";
    ?>
 <br />
            <?php 
    $locationResults = locations_based_on_rid($row[0]);
    ?>
            <?php 
    echo "Locations: ";
    ?>
 <br>
                  <?php 
    while ($row2 = pg_fetch_row($locationResults)) {
        ?>
                    <?php 
        echo "Street Address: {$row2['4']}";
        ?>
 <br>
                    <?php 
        echo "Phone Number: {$row2['3']}";
        ?>
<?php

require_once 'model.php';
$conn = open_database_connection();
?>
 
<?php 
require 'templates/header.php';
$ratings_limit = 5;
$nearby_restaurants_limit = 3;
$rid = $_GET['rID'];
$row = pg_fetch_row(restaurant_based_on_rid($rid));
$loc = pg_fetch_row(locations_based_on_rid($rid));
$m = get_menu_based_on_rid($rid);
$rating = get_all_ratings_by_rid_with_limit($rid, $ratings_limit);
$nearby = get_all_restaurants_with_limit($nearby_restaurants_limit);
$date = date("N", $timestamp) + 1;
$hours = get_todays_hours($date, $rid);
?>
<div class="row">

 
<div class="large-9 columns" role="content">
  <div class="row">
    <div class="large-3 columns">
      <?php 
echo "<img src='{$row['4']}' />";
?>
        Downtown <br />
        <?php 
echo "{$loc['4']}";