-2
I have a digital catalog that works normally on my local server, but when I go up to my hostgator hosting it returns me the following error:
PHP Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, bool given in
error happens on this line:
while($rows_produtos = mysqli_fetch_assoc($resultado_produtos)){ ?>
data from my sql query:
$result_produtos = "SELECT * FROM produtos where estoque >= 1";
$resultado_produtos = mysqli_query($conn, $result_produtos);
Note: I have checked everything and do not know what I am doing wrong.
what I don’t understand is that the system works perfectly on the localhost server, only when I go up it shows this error.
– marcosramos86
I managed to solve my problem, it was an information error that was preventing the connection as database, I just made change $dbname to $bank and it worked! thank you for your attention.
– marcosramos86