title: Display all the items into the div display box
body: <p>Here i am trying to display all the items in the div display area. However i keep getting these errors; </p>
  
  <blockquote>
    <p>Notice: Undefined variable: connect in
    C:\xampp\htdocs\includes\landlord_profile.php on line 76</p>
    
    <p>Warning: mysqli_query() expects parameter 1 to be mysqli, null given
    in C:\xampp\htdocs\includes\landlord_profile.php on line 76</p>
    
    <p>Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result,
    null given in C:\xampp\htdocs\includes\landlord_profile.php on line 78</p>
  </blockquote>
  
  <pre><code>&lt;?php
  session_start(); 
  
  include ("includes/connect.php");
  ?&gt;
  
  &lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Landlord Profile&lt;/title&gt;
  
  
    &lt;meta charset="utf-8"&gt;
    &lt;link rel="stylesheet" type="text/css" href="css/index.css"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
    &lt;link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"&gt;
    &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"&gt;&lt;/script&gt;
    &lt;script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;div class="whole_page_div" style="width:100%; height:935px;;"&gt;
          &lt;div class="container-fluid" style="margin-top: 15px;&gt;
                  &lt;div class="row"&gt;
                  &lt;div class="col-md-12"&gt;
                  &lt;div class="logo" style="margin-left: 750px;"&gt;&lt;a href="Index.html"&gt;&lt;img class="logo" src="images/logo.png"/&gt;&lt;/a&gt;&lt;/div&gt;
                   &lt;a href="logout.php"&gt; &lt;button type="submit" class="btn btn-primary" name="logout" value="Log out" style="background-color:#337AB7; margin-top: -130px; margin-left: 1600px; "&gt;Log Out&lt;/button&gt;&lt;/a&gt;
  
                  &lt;/div&gt;
  
  
  &lt;hr&gt;
      &lt;nav class="navbar navbar-default navbar-fixed-top topnav" role="navigation"&gt;
      &lt;div class="container topnav"&gt;
  
  
              &lt;div class="navbar-header"&gt;
                  &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"&gt;
                      &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
                      &lt;span class="icon-bar"&gt;&lt;/span&gt;
                      &lt;span class="icon-bar"&gt;&lt;/span&gt;
                      &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;/button&gt;
                  &lt;a class="navbar-brand topnav" href="#"&gt;MyAstonSpace&lt;/a&gt;
              &lt;/div&gt;
              &lt;!-- Collect the nav links, forms, and other content for toggling --&gt;
              &lt;div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"&gt;
                  &lt;ul class="nav navbar-nav navbar-right"&gt;
                      &lt;li&gt;
                          &lt;a href="#Home"&gt;Home&lt;/a&gt;
                      &lt;/li&gt;
                      &lt;li&gt;
                          &lt;a href="#Undergraduate Information"&gt;Undergraduate Information&lt;/a&gt;
                      &lt;/li&gt;
                      &lt;li&gt;
                          &lt;a href="#Post-Grad Information"&gt;Post-Grad Information&lt;/a&gt;
                      &lt;/li&gt;
                       &lt;li&gt;
                          &lt;a href="#International Students"&gt;International Students&lt;/a&gt;
                      &lt;/li&gt;
                       &lt;li&gt;
                          &lt;a href="#Contact Us "&gt;Contact Us &lt;/a&gt;
                      &lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/div&gt;
              &lt;!-- /.navbar-collapse --&gt;
        &lt;/div&gt;
          &lt;!-- /.container --&gt;
      &lt;/nav&gt;
  
  
      &lt;?php
      function getprop (){
  
          $getprop = mysqli_query($connect,"SELECT * FROM properties");
  
          while ($rowprop = mysqli_fetch_array($getprop)){
  
              $prop_id = $rowprop['prop_id'];
              $prop_name = $rowprop['prop_name'];
              $prop_address = $rowprop['prop_address'];
              $prop_img = $rowprop['prop_img'];
              $prop_radius = $rowprop['prop_radius'];
              $prop_bedrooms = $rowprop['prop_bedrooms'];
              $prop_type = $rowprop['prop_type'];
              $prop_price = $rowprop['prop_price'];
  
              echo "
                  &lt;div class='singleproperty'&gt;
  
                  &lt;h3&gt;$prop_name&lt;/h3&gt;
              "   ;       
  
              }
  
  
          }
  
  
      ?&gt;
      &lt;div class="container-fluid"&gt;
    &lt;h3&gt;Your Profile &lt;h5&gt; Landlord &lt;/5&gt;&lt;/h3&gt;
    &lt;ul class="nav nav-pills nav-stacked" style="width:300px;"&gt;
       &lt;li&gt;&lt;a href="#"&gt;Personal Information&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="includes/landlord_profile.php"&gt;My Proporties&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Upload Profile Image&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="incldues/deactivate_myaccount.php"&gt;Deactivate My Account&lt;/a&gt;&lt;/li&gt;
  
    &lt;/ul&gt;
  &lt;/div&gt;
  
  
  &lt;center&gt;
  &lt;div class="panel panel-default" style="width: 1200px; height: 400px; margin-top: -200px; margin-left: 100px; border: 2px solid blue;  " &gt;
      &lt;div class="panel-body" style="text-align:center; margin-left:30px; margin-bottom:10px;"&gt; 
          &lt;div class="listproperties"&gt;
          &lt;?php
          getprop();
          ?&gt;
          &lt;/div&gt;
  
       &lt;/div&gt;
  &lt;/div&gt;
  &lt;/center&gt;
  
  
  &lt;?php
  include ("includes/footer-inc.php");
  ?&gt;
  </code></pre>