tambien puedes condicionarlas:
Código PHP:
Ver original$db = new mysqli(host, user, pass, base);
$notice = $db->query("SELECT * FROM articles ORDER BY id ASC");
if($totalRows >0)
{
while($row=$notice->fetch_array())
{
echo $row['title']."<br>";
echo $notice['icon']."<br>"
//y asi suscesivamente......
//tambien puedes realizar el arreglo en una tabla por ejemplo
}
} else{
echo "No se encontraros Noticias";
}