Ver Mensaje Individual
  #9 (permalink)  
Antiguo 06/08/2007, 10:30
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: se puede hacer esto?

Pues solo lo recibes y haces el UPDATE.
Código PHP:
if( strtolower$_SERVER['REQUEST_METHOD'] ) == "post" ) {
      
$nombre addslashes($_POST['txt_nombresBD']);
      
$id $_POST['id'];
      
$query "UPDATE `tabla` SET `NOMBRES`='$nombre' WHERE `id`=$id";
      
// haces el query y compruebas
      
if( mysql_affected_rows() > ) {
             echo 
"Bien";
      } else {
             echo 
"Mal, error: " mysql_error();
      }

Saludos.