Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/09/2009, 13:33
geoxxx
 
Fecha de Ingreso: junio-2009
Mensajes: 21
Antigüedad: 14 años, 10 meses
Puntos: 0
Busqueda Respuesta: Problema con consulta

Porque no muestra los resultados ordenados en que estoy mal..........

Código PHP:
$resultN=mysql_query("select * from nota where postgrado='$codigo' and año=$año");
while (
$not=mysql_fetch_array($resultN)) {
                                            
                                            
$resultA=mysql_query("select * from datos_alumno ORDER BY apellido ASC");
                                            
while (
$part=mysql_fetch_array($resultA)){
    
    if (
$part[0] == $not[1]){
         
$i$i 1;
        echo 
"<tr>";
        echo 
"<td>$i</td>";
        echo 
"<td>$part[2], $part[1]</td>";
        echo 
"<td>$part[0]</td>";
        echo 
"<td><img src='$part[10]'></td>";
        echo 
"<td><input type='text' name='ident[$part[0]]' value='$not[$no]' id='inputnota'  maxlength='2'></td>";
        echo 
"</tr>";    
    }
}