title: Alternative of mysqli get_restult if I don't want use bind_result and fetch
body: <p>When I use something like this:</p>
  
  <pre><code>$stmt = $dbConnection-&gt;prepare('SELECT * FROM employees WHERE name = ?');
  $stmt-&gt;bind_param('s', $name);
  
  $stmt-&gt;execute();
  
  $result = $stmt-&gt;get_result();
  while ($row = $result-&gt;fetch_assoc()) {
      // do something with $row
  }
  </code></pre>
  
  <p>according this answer: </p>
  
  <p><a href="https://stackoverflow.com/questions/60174/how-can-i-prevent-sql-injection-in-php">How can I prevent SQL injection in PHP?</a> <br />
  I get this error: <br /></p>
  
  <p>Call to undefined method mysqli_stmt::get_result()</p>
  
  <p>Because get_result is available only with mysqlnd (<a href="http://www.php.net/manual/en/mysqli-stmt.get-result.php" rel="nofollow noreferrer">get_result php reference</a>). <br />
  So is there any alternative how to get all columns? If I don't want bind all columns(using bind_result()), because in my case I do query on 3 tables and I just dont want bind all columns because it is an insane job. <br />
  So I don't want use bind_result(), get_resuslt doesn't work is there any alternative or it means I cant use prepared statements and only chance is get back to this:</p>
  
  <pre><code>sql = "SELECT * FROM ...." //just some query
  $query = mysqli_query($db_donnection, $sql);
  
  
  while ($row = mysqli_fetch_array($query, MYSQLI_ASSOC)) {
      $id = $row["id"];
      $e = $row["email"];
      //....
  }
  </code></pre>