
29/05/2006, 20:39
|
 | | | Fecha de Ingreso: septiembre-2005 Ubicación: Córdoba
Mensajes: 1.830
Antigüedad: 19 años, 6 meses Puntos: 55 | |
proba cambiando este codigo
if($row = mysql_fetch_array($sql))
{
$i=1;
do{
$prof = new Profesor($row[1],$row[2],$row[3],$row[4],$row[5],$row[6],$row[7],$row[8],$row[9],$row[0],$row[10],$row[11],$row[12],$row[13]);
$this->$profesores[$i] = $prof;
$i++;
}while ($row = mysql_fetch_array($sql));
}
return $profesores;
por este otro
if($row = mysql_fetch_array($sql))
{
do{
$prof = new Profesor($row[1],$row[2],$row[3],$row[4],$row[5],$row[6],$row[7],$row[8],$row[9],$row[0],$row[10],$row[11],$row[12],$row[13]);
$profesores[] = $prof;
}while ($row = mysql_fetch_array($sql));
}
return $profesores;
el subindice $i esta de mas ya q php lo hace solito y el $this-> estaba de mas
saludos espero te sirva |