Como soluciono este error:
Fatal error: Call to a member function fetch_assoc() on boolean in..
Código PHP:
Ver original<?php
//Mostrar bd
$query = "SELECT c_cus FROM laxus";
$result = $mysqli->query($query);
echo("<table>");
while ($rows = $result->fetch_assoc()) {
print("</table>");
print("<td>".$rows["c_id"]."</td>");
print("<td>".$rows["firstname"]."</td>");
print("<td>".$rows["lastname"]."</td>");
print("</tr>");
}
print("</table>");
/* liberar la serie de resultados */
$result->free();
/* cerrar la conexión */
$mysqli->close();
?>