Ver Mensaje Individual
  #6 (permalink)  
Antiguo 15/07/2015, 20:18
Silenn
 
Fecha de Ingreso: julio-2015
Ubicación: Distrito Federal
Mensajes: 97
Antigüedad: 8 años, 9 meses
Puntos: 2
Respuesta: Duda sistema de noticias

Aquí lo tienes

Código PHP:
<html>
<head>
</head>
<body>
<?
$db 
= new mysqli(el hostmi usermi passla db);
 
$notice $db->query("SELECT * FROM articles ORDER BY id ASC");
$totalRows mysqli_num_rows($notice);
 
if(
$totalRows >0)

while(
$row=$notice->fetch_array())
  {
    echo 
$row['title']."<br>";
    echo 
$notice['icon']."<br>"}} else{
   echo 
"No se encontraros Noticias";
}
?>
</body>
</html>
Eso es todo