0
Does anyone know why this mistake in php
when viewing a table on mysql
"Fatal error: Call to a Member Function fetch_assoc() on Boolean in /Storage/Emulated/0/site/store/Adm/editar_produto.php on line 85"
Since on another page using the same code works normal, the code is below. On the 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>";
}