Ver Mensaje Individual
  #4 (permalink)  
Antiguo 15/07/2015, 19:07
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

Cita:
Iniciado por xfxstudios Ver Mensaje
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. }
Me tira este error: http://prntscr.com/7t7i0h :(