title: Search bar wont return results
body: <p>Cant figure out what's going wrong here, no errors are appearing but nothing is being returned. The search bar should return the names of other users from my database.</p>
  
  <p>Here is Test.php:</p>
  
  <pre><code>&lt;?php
      session_start();
  ?&gt;  
  
  &lt;!DOCTYPE html&gt;
  &lt;head&gt;
      &lt;script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          function search(partialSearch){
              $.ajax({
                  url:"PHP.php",
                  type:"POST",
                  data {partialSearch:partialSearch},
                  success:function(result){
                      $("#results").html(result);
                  }
              });
          };
      &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
      &lt;div class="container"&gt;
  
          &lt;h3&gt;Find Other users&lt;/h3&gt;
  
          &lt;input type="text" name="partialSearch"onkeyup="search(this.value)"/&gt;
          &lt;div id="results"&gt;&lt;/div&gt;
      &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Here is PHP.php</p>
  
  <pre><code>&lt;?php
  
      $servername = "localhost";
      $username = "root";
      $password = "root";
      $dbname = "coursework_db";
  
      // Create connection
      $conn = new mysqli($servername, $username, $password, $dbname);
      // Check connection
      if ($conn-&gt;connect_error) {
          die("Connection failed: " . $conn-&gt;connect_error);
      } 
  
      $partialSearch = $_POST['partialSearch'];
  
      $stmt = $conn-&gt;prepare("SELECT username FROM members WHERE username LIKE ? ");
      $stmt-&gt;bind_param('s',$partialSearch);
      $stmt-&gt;execute();
      $stmt-&gt;bind_result($username);
      while ($row = $stmt-&gt;fetch()) {
          $searchResults[] = $username;
          echo "&lt;div&gt;".$searchResults."&lt;/div&gt;";
      }
  ?&gt;
  </code></pre>
  
  <p>Here is the SQL table:</p>
  
  <pre><code>CREATE TABLE members (
  memberID int(5) NOT NULL AUTO_INCREMENT,
  username VARCHAR(65) NOT NULL UNIQUE,
  password VARCHAR(65) NOT NULL,
  PRIMARY KEY (memberID)
  );
  </code></pre>
  
  <p>Thank you in advance for any help! </p>