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;