title: Search functionality outputting as 'array'
body: <p>I followed a tutorial on how to make a search bar functional and I am not seeing what I'm doing wrong. I am trying to give users the option to search for products. The end result is everything is being out-putted as 'Array'. The correct amount of search results show up.</p>
  
  <p>My search bar is on my index page.</p>
  
  <pre><code>&lt;form class="searchbar" action="/searchresults" method="POST"&gt;
                              &lt;input class="inputsearchbar" type="text" 
  
      name="search" size="50"&gt;
                                  &lt;input class="searchButton" type="submit" value="Search" name="submit"&gt;
                              &lt;/label&gt;    
                          &lt;/form&gt;
  </code></pre>
  
  <p>I then have a page called searchresults.php where my results are outputted to. I'm pulling from my products table in my database.</p>
  
  <p>I have this at the top of the file..</p>
  
  <pre><code>    if(!isset($_POST['search'])) {
      header("Location:index.php");
      die($e-&gt;getMessage());
  }
  
  
  $con = mysqli_connect("localhost", "root", "", "bfb"); 
  $search_sql = "SELECT * FROM products WHERE name LIKE '%" . $_POST['search'] . "%' OR description LIKE '%" . $_POST['search'] . "%'";
  $search_query=mysqli_query($con, $search_sql);
  
      if (mysqli_num_rows($search_query)!=0) {
      $search_rs=mysqli_fetch_assoc($search_query);
      }
  ?&gt;
  </code></pre>
  
  <p>Followed by this in the body to output the results...</p>
  
  <pre><code>&lt;h1&gt;Search Results&lt;/h1&gt;
  &lt;?php
  
      if(mysqli_num_rows($search_query)!=0) {
          do { ?&gt;
          &lt;p&gt;&lt;?php echo $search_rs=['name']; ?&gt;&lt;/p&gt;
          &lt;p&gt;&lt;?php echo $search_rs=['description']; ?&gt;&lt;/p&gt;
  
      &lt;?php       } while ($search_rs=mysqli_fetch_assoc($search_query));
          } else {
              echo"Sorry, no results were found. Please try again.";
          }
      ?&gt;
     &lt;/div&gt;
  </code></pre>
  
  <p>Why are all of my results displaying as 'Array' and how can I correct this?</p>