title: PHP Fatal error: Uncaught Error: Call to undefined function mysqli_stmt_get_result()
body: <p>i have a piece of code, which works perfectly on my local machine, however when i upload this to an online server, i get an error ..PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_stmt_get_result().. please i need help on how to solve this problem, i had searched online for solutions, i saw something about enabling mysqlind driver, i have checked the online server this mysqlind was checked.please this is my code</p>
  <pre><code>`$query = &quot;SELECT * FROM users WHERE username = ?;&quot;;
        $stmt = mysqli_stmt_init($conn);
        if(!mysqli_stmt_prepare($stmt,$query)){
            echo&quot;MYSQLI QUERY HAS FAILED&quot;;
        }else{
            mysqli_stmt_bind_param($stmt, &quot;s&quot;, $username);
            mysqli_stmt_execute($stmt);
        $result = mysqli_stmt_get_result($stmt);
    if(!$result-&gt;num_rows){
                 $error1   = &quot;&lt;div class='alert alert-danger' role='alert'&gt;Sorry username!&lt;/div&gt;&quot;;
             }else{
               while($row = mysqli_fetch_array($result)){
                     $id = $row['id'];
                     $username = $row['username'];
                    
      }`
  </code></pre>