-1

I don't have the mysqlnd driver on my shared server.

How do I write this:

$stmt = $conn->prepare($query);
$stmt->execute();
$result = $stmt->get_result();
$servers = mysqli_fetch_all($result,MYSQLI_NUM);

Without having the mysqlnd driver?

Dharman
  • 30,962
  • 25
  • 85
  • 135
odannyc
  • 717
  • 9
  • 25

1 Answers1

-2
$servers = array();
$result = $conn->query($query);
while ($row = $result->fetch_assoc()) {
  $servers[] = $row;
}

^^^ That worked!

odannyc
  • 717
  • 9
  • 25