Does anyone know why this error in php
when querying a table in mysql
"Fatal error: call fetch_assoc () on boolean in /storage/emulated/0/site/roja/adm/editar_produto.php on line 85 "
Since in another page using the same code works normal, the code is below.In that same page I look for information to be edited.
$sql ="Select * from categorias";
$resultado = $con ->real_query($sql);
$resultado= $con->use_result();
while($row = $resultado->fetch_assoc()){
echo $row["id"] ."$nbsp;";
echo $row['nome'] ."<br>";
}