Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/07/2008, 15:11
Avatar de _cx
_cx
 
Fecha de Ingreso: diciembre-2007
Ubicación: Montevideo, Uruguay
Mensajes: 70
Antigüedad: 16 años, 4 meses
Puntos: 2
Respuesta: actualizar con texbox dinamicos

Código PHP:
<?php
    $i
=1;
    
$j=2;
    
//CONEXION CON LA BASE DE DATOS
    
mysql_connect("localhost","root","adminsqlcomcel") ;
    
//SELECCION CON LA BASE DE DATOS CON LA QUE SE VA A TRABAJAR
    
mysql_select_db("Facturacion");
    
$result mysql_query("SELECT * FROM Contratista ");
    while(
$row = @mysql_fetch_array($result)){
    
//CRERAMOS LA SENTENCIA Y LA EJECUTAMOS
    
$indice="calificacion".$i;
    
$indice1="tel".$j;
    
$i++;
    
$j++;
    
$sSQL="UPDATE contratista SET Tel_Contacto='"$indice ."' where Nit='"$indice1 ."'";
    echo 
$sSQL."<br>";
}

    
mysql_query($sSQL);
    echo 
"<h3><div align='center'>El trabajo se ha modificado satisfactoriamente</div></h3>";
echo 
"<a href='http://localhost/Facturacion/Menu%20Ing%20Implementacion.php'class='Estilo1'><s trong>Men&uacute; Principal</strong></a>";
?>
prueba ahi, lo que hice fue sacar los POST y prueba que pasa

saludos