NogDog - I tried your method and it didn't work. Get the following error:
PHP Fatal error: Call to a member function fetch_assoc() on a non-object
However, I did find another way to bind variables. See code below for those who want to do the same thing.
This work:
if ($sql = $mysqli->prepare("SELECT * FROM lindatest")) {
$sql->execute();
$sql->store_result();
$meta = $sql->result_metadata();
$bindVarsArray = array();
while ($column = $meta->fetch_field()) {
$bindVarsArray[] = &$results[$column->name];
}
call_user_func_array(array($sql, 'bind_result'), $bindVarsArray);
$sql->fetch();
while ($sql->fetch())
{
echo "here= ".$results['value']." <br>";
}
$sql->close();
}