I have the following, which I built while testing on my WAMP server…but I have a major problem. When I moved it online, I get the following error: Fatal error: Call to undefined method mysqli_stmt::get_result()
I researched it and it says I need mysqlnd to get that to work? I’m not even sure what that means, really, but seems I can’t get it? My server uses PHP 5.4…and I read that mysqlnd needs to be compiled? Again, not sure what that means and if I can even do that on my server…
[php]
if($stmt = $db->prepare($q)) {
$stmt->bind_param(‘i’,$id);
$stmt->execute();
$result = $stmt->get_result();
$stmt->store_result();
while ($row = $result->fetch_assoc()) {
foreach ($row as $k => $v) {
}
}
[/php]
I am so lost as what to do. I can’t seem to find anther way to write this! Any help? I need it to be an assoc array so I can fetch it by the key and value.