Ver Mensaje Individual
  #9 (permalink)  
Antiguo 28/08/2015, 11:30
Ser_Gio
 
Fecha de Ingreso: agosto-2015
Ubicación: chile
Mensajes: 4
Antigüedad: 8 años, 8 meses
Puntos: 0
Respuesta: Error muy básico

trata con eso, actualiza tu codigo con msqli , dentro del while esta el limite que le puse 3, ahi dejas el 32

Código PHP:
Ver original
  1. <?php
  2. $conexion = mysqli_connect('localhost','root','');
  3. $baseDatos = mysqli_select_db($conexion,'PRUEBAS1');
  4. $tarea = mysqli_query ($conexion,'SELECT * FROM ALUMNOS-4ESOA');
  5.  
  6. $maximo=1;
  7. while(($row =mysqli_fetch_array($tarea,MYSQL_ASSOC)) and ($maximo <=3))
  8. {
  9.  
  10.         echo $row["id"];
  11.         echo $row["nombrecompleto"];
  12.         echo "<br>";   
  13.  
  14.         $maximo++;
  15.    
  16. }
  17. ?>