Ver Mensaje Individual
  #3 (permalink)  
Antiguo 15/07/2015, 18:37
Avatar de xfxstudios
xfxstudios
 
Fecha de Ingreso: junio-2015
Ubicación: Valencia - Venezuela
Mensajes: 2.448
Antigüedad: 8 años, 10 meses
Puntos: 263
Respuesta: Duda sistema de noticias

tambien puedes condicionarlas:
Código PHP:
Ver original
  1. $db = new mysqli(host, user, pass, base);
  2.  
  3. $notice = $db->query("SELECT * FROM articles ORDER BY id ASC");
  4. $totalRows = mysqli_num_rows($notice);
  5.  
  6. if($totalRows >0)
  7. {
  8. while($row=$notice->fetch_array())
  9.   {
  10.     echo $row['title']."<br>";
  11.     echo $notice['icon']."<br>"
  12. //y asi suscesivamente......
  13. //tambien puedes realizar el arreglo en una tabla por ejemplo
  14. }
  15. } else{
  16.    echo "No se encontraros Noticias";
  17. }