mysql - Convert Mysqli query without using MYSQLND? -


i don't have mysqlnd driver on shared server.

how write this:

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

without having mysqlnd driver?

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

^^^ worked!


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -