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
`$query = "SELECT * FROM users WHERE username = ?;";
$stmt = mysqli_stmt_init($conn);
if(!mysqli_stmt_prepare($stmt,$query)){
echo"MYSQLI QUERY HAS FAILED";
}else{
mysqli_stmt_bind_param($stmt, "s", $username);
mysqli_stmt_execute($stmt);
$result = mysqli_stmt_get_result($stmt);
if(!$result->num_rows){
$error1 = "<div class='alert alert-danger' role='alert'>Sorry username!</div>";
}else{
while($row = mysqli_fetch_array($result)){
$id = $row['id'];
$username = $row['username'];
}`