Ver Mensaje Individual
  #7 (permalink)  
Antiguo 04/06/2009, 07:54
Avatar de abidibo
abidibo
 
Fecha de Ingreso: mayo-2009
Mensajes: 121
Antigüedad: 15 años
Puntos: 7
Respuesta: ¿Modificar campos de una seleccion de datos...? MUY URGENTE!!

Si claro, fue un error, el tag form debe estar fuera del buque!!
Código PHP:
<?php
session_start
();
    
$conexion=@mysql_connect("localhost:3307",$_SESSION[usuario],$_SESSION[clave]) or die ("<font face=arial size=2>Acceso denegado</font>");
    
mysql_select_db("inventario"$conexion);
    
$consulta mysql_query("SELECT ns, articulo, marca, modelo, empresa, ubicacion, sububicacion, observaciones FROM articulos ORDER BY ubicacion"$conexion); 
    
    
$fila = @mysql_fetch_array($consulta);
    

    echo 
    
"
    <font face='Arial' size='2'>
    <center>
    <table bgcolor= '#C0C0C0'>
    <form action = 'modificacionesg.php' method = 'POST'>"
;    
    while(
$fila mysql_fetch_array($consulta))
    {
    echo 
"
    <tr>
    <td><center><input type = text value = '$fila[ns]' name = 'ns2[]'></center></td>
    <td><center><input type = text value = '$fila[articulo]' name = 'articulo2[]'><center></td>
    <td><center><input type = text value = '$fila[marca]' name = 'marca2[]'><center></td>
    <td><center><input type = text value = '$fila[modelo]' name = 'modelo2[]'><center></td>
    <td><center><input type = text value = '$fila[empresa]' name = 'empresa2[]'><center></td>
    <td><center><input type = text value = '$fila[ubicacion]' name = 'ubicacion2[]'><center></td>
    <td><center><input type = text value = '$fila[sububicacion]' name = 'sububicacion2[]'><center></td>
    <td><center><input type = text value = '$fila[observaciones]' name = 'observaciones2[]'><center></td>
    </tr>"
;
    }
    echo
    
"<td><center><input type = submit value = M></center></td>
    </form>
    </table>
    </body>
    </html>"
;
    
    
    
mysql_close($conexion);
?>