Ver Mensaje Individual
  #11 (permalink)  
Antiguo 30/10/2006, 12:54
Avatar de helthon
helthon
 
Fecha de Ingreso: junio-2005
Ubicación: Lima
Mensajes: 549
Antigüedad: 19 años, 9 meses
Puntos: 7
jeje me ganaste con la respuesta pez
Código PHP:
while($result=mysql_fetch_array($sql))

$num$result['id']; // el id 
$nombre$result['nombre']; 
$apellidos$result['apellidos']; 
$direccion=$result['direccion']; 
$ciudad$result['ciudad']; 
$pais$result['pais']; 
$email$result['email']; 
$empresa$result['empresa']; 
$fax$result['fax']; 
$telefono$result['telefono']; 
$profesion$result['profesion']; 

Código HTML:
 <input type='hidden' name='varedit' value='$num'></input> 
Código PHP:
$sql="update mia SET
nombre='$nombre',
apellidos='$apellidos',
direccion='$direccion',
ciudad='$ciudad',
pais='$pais',
email='$email',
empresa='$empresa',
fax='$fax',
telefono='$telefono',
profesion='$profesion' 
WHERE id_c='$varedit' "


// PARA QUE VEAS COMO SALE TU CONSULTA IMPRIMELA
echo $sql
__________________
HELTHON FUENTES
FLORERIA FLORES PERU Floresperu.com.pe
Garantizamos que cada entrega de flores será de la más alta calidad y frescura