title: Call to undefined method mysqli_stmt::get_result
body: <p>Here's  my code:</p>
  
  <pre><code>include 'conn.php';
  $conn = new Connection();
  $query = 'SELECT EmailVerified, Blocked FROM users WHERE Email = ? AND SLA = ? AND `Password` = ?';
  $stmt = $conn-&gt;mysqli-&gt;prepare($query);
  $stmt-&gt;bind_param('sss', $_POST['EmailID'], $_POST['SLA'], $_POST['Password']);
  $stmt-&gt;execute();
  $result = $stmt-&gt;get_result();
  </code></pre>
  
  <p>I get the error on last line as: <strong>Call to undefined method mysqli_stmt::get_result()</strong></p>
  
  <p>Here is the code for conn.php:</p>
  
  <pre><code>define('SERVER', 'localhost');
  define('USER', 'root');
  define('PASS', 'xxxx');
  define('DB', 'xxxx');
  class Connection{
      /**
       * @var Resource 
       */
      var $mysqli = null;
  
      function __construct(){
          try{
              if(!$this-&gt;mysqli){
                  $this-&gt;mysqli = new MySQLi(SERVER, USER, PASS, DB);
                  if(!$this-&gt;mysqli)
                      throw new Exception('Could not create connection using MySQLi', 'NO_CONNECTION');
              }
          }
          catch(Exception $ex){
              echo "ERROR: ".$e-&gt;getMessage();
          }
      }
  }
  </code></pre>
  
  <p>If I write this line: </p>
  
  <pre><code>if(!stmt) echo 'Statement prepared'; else echo 'Statement NOT prepared';
  </code></pre>
  
  <p>It prints <strong>'Statement NOT prepared'</strong>. If I run the query directly in the IDE replacing ? marks with values, it works fine. Please note that $conn object works fine in other queries in the project.</p>
  
  <p>Any help please.......</p>