Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/06/2007, 11:44
Avatar de Carlojas
Carlojas
 
Fecha de Ingreso: junio-2007
Ubicación: Shikasta
Mensajes: 1.272
Antigüedad: 16 años, 10 meses
Puntos: 49
Re: Ayuda con actualización - Update multiple

GatorV

Una vez mas gracias por tu aporte. La información de la consulta mi script la presenta en cajas de texto con la opción de hay mismo poder modificarlas no hay alguna manera de recorrer la tabla para que la acccion Update se pueda repetir?

Aqui esta mi codigo de consulta.
Código PHP:
    $consulta "SELECT * FROM listado WHERE codmat = $Codmat AND codest = '$Codest' ";
                
$resultado mysql_query($consulta$conex);



// RECORRIDO DEL CURSOR
                       
$i 1;
                       while (
$fila mysql_fetch_array($resultado))
                    {
                            echo 
"<tr>";
                            echo 
"<td><b><input type=text name = 'Id' value = '" $fila["id"] . "' size=5 READONLY></td>"
                            echo 
"<td align = center><b><input type = text name = 'Coddoc' value='" $fila["coddoc" ] . "' size =                                 5 READONLY></td>"
                            echo 
"<td><b><input type = text name = 'Codmat' value = '" $fila["codmat"] . "' size = 5></td>"
                            echo 
"<td><b><input type = text name = 'Nommat' value = '" $fila["nommat"] . "' size = 35></td>";
                            echo 
"<td align = center ><b><input type = text name = 'Codest' value='" $fila["codest"] . "' size =                                 12></td>"
                            echo 
"<td><b><input type = text name = 'Nomest' value = '" $fila["nomest"] . "' size = 32></td>"
                            echo 
"<td><b><input type = text name = 'Grupo' value = '" .  $fila["grupo"] . "' size = 6></td>"
                            echo 
"<td><b><input type = text name = 'Semestre' value = '" $fila["semestre"] . "' size = 8></td>"
                            echo 
"<td><b><input type = text name = 'Cortep' value = '" $fila["cortep"] . "' size = 6></td>"
                            echo 
"<td><b><input type = text name = 'Cortes' value = '" $fila["cortes"] . "' size = 6></td>"
                            echo 
"<td><b><input type = text name = 'Cortet' value = '" $fila["cortet"] . "' size = 6></td>"
                            echo 
"<td><b><input type = text name = 'Habilitacion' value = '" $fila["habilitacion"] . "' size=5>                                  </td>"
                            echo 
"<td><input type=text name = 'Definitiva' value='" $fila["definitiva"] . "' size=5></td>"
                            echo 
"</tr>";
                            
$i++;
      
                       }    
                    
                            echo 
"\n</table>";
                            echo 
"<hr>";
                            echo 
"\n<tr><td colspan = 2 align = center><input type = 'submit' value = 'Actualizar datos'></td></tr>                            ";
                            echo 
"\n</form>"

Te entiendo perfectamente lo de la grilla pero quisiera otra opción de antemano gracias.

Última edición por Carlojas; 11/06/2007 a las 11:50