Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/03/2011, 13:15
dotzeck
 
Fecha de Ingreso: diciembre-2010
Ubicación: Gavà
Mensajes: 74
Antigüedad: 13 años, 4 meses
Puntos: 3
Respuesta: Warning: mysql_fetch_array() expects parameter 1 to be resource, string gi

Gracias!, arreglado, ahora lo he dejado
Código PHP:
Ver original
  1. <?php
  2. include ('../scripts/db.php');
  3.  
  4. $ida = $_POST["ida"];
  5. $name_alumn = array(
  6.                             $ida=>"nombrealumno$ida");
  7.                            
  8. if (isset($_POST["$name_alumn[$ida]"])) {
  9.     $nom_alumno = $_POST["$name_alumn[$ida]"];
  10.    
  11.    
  12. $i=0;
  13. while ($i < count ($nom_alumno) ) {
  14.     print $nom_alumno[$i];
  15.     print '<br />';
  16.     $i++;
  17. }
  18.                    
  19.          }
  20. else{
  21.     echo "Que intentes ;)?";   
  22. }
  23. ?>

Pero ahora tan solo me muestra el último valor del array