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
Post a Comment