I just pushed something from my local machine to the live site and I get blank pages everywhere. I tracked down the problem to mysqli_fetch_all when I use that everything breaks. Why is it doing this? and how do I fix it? if I use mysqli_fetch_array or mysqli_fetch_row or mysqli_fetch_assoc it works but my data is not displayed properly.
This is one the functions that is breaking:
function getUserFields($connection){
$query = mysqli_query($connection, "DESCRIBE `adminUsers`");
$results = mysqli_fetch_all($query, MYSQLI_ASSOC);
return $results;
}
The $connection
is the connection to my database, I have confirmed that works and $query sting is getting populated, it just the mysqli_fetch_all
does not work, how could I fix this in the function without adjusting how the data is displayed currently.