Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/07/2005, 09:14
Avatar de 8461277
8461277
 
Fecha de Ingreso: diciembre-2002
Ubicación: san juan de los morros
Mensajes: 887
Antigüedad: 21 años, 4 meses
Puntos: 1
Mande imprimeir la consulta y me arroja esto:

UPDATE coordinador SET Cargo='', Profesor='' , Enlace='', Tel_habitacion='', Tel_celular='' , E_mail='' , Tel_enla_habitacion='' , Tel_enla_celular=' , E_mail_enla='' WHERE Id='15'
¡No se ha podido modificar.!

me trae el Id, pro las variables delñ formulario noooooooooo, que pasara
el formulario lo mando con metodo POST y lo recivo con GET, si le coloco los dos POST no me trae erl ID si lo dejo con POST en el formulario y GET en la opagina donde hace el UPDATE si me lo recoje pero nada de la variables del formulario
El formulario completos es este:

Código PHP:
 <?
//Conexion con la base
mysql_connect"localhost""root"""); 
mysql_select_db("movedb"); 
$result=mysql_query("SELECT * FROM coordinador WHERE Id='".$_GET['Id']."'") or die (mysql_error()); 
?>
<?
//Mostramos los registros
while ($row=mysql_fetch_array($result))
{

echo 
"<form method='post' action='guardar_actualizacion.php?Id=".$row['Id']."'";
echo 
"Id: <input type='text' name='Id' size='4' value=\"".$row['Id']."\"><BR>"
echo 
"Programa: <input type='text' name='Cargo' size='60' value=\"".$row['Cargo']."\"><BR>"
echo 
"Profesor: <input type='text' name='Profesor' size='50' value=\"".$row['Profesor']."\"><BR>"
echo 
"Enlace: <input type='text' name='Enlace' size='50' value=\"".$row['Enlace']."\"><BR>"
echo 
"Telf. Habitación: <input type='text' name='Tele_habit' size='10' value=\"".$row['Tel_habitacion']."\"><BR>"
echo 
"Telf. Celular: <input type='text' name='Tel_celul' size='10' value=\"".$row['Tel_celular']."\"><BR>"
echo 
"E-mail: <input type='text' name='E_mail' size='50' value=\"".$row['E_mail']."\"><BR>"
echo 
"Telf. Enlace Hab.: <input type='text' name='Tel_enla_habit' size='10' value=\"".$row['Tel_enla_habitacion']."\"><BR>"
echo 
"Telf. Enlace Celul: <input type='text' name='Tel_enla_celul' size='10' value=\"".$row['Tel_enla_celular']."\"><BR>"
echo 
"E-mail Enlace: <input type='text' name='E_mail_enla' size='10' value=\"".$row['E_mail_enla']."\"><BR>"
}
mysql_free_result($result)
?>
Ayuda plir
__________________
Miguel Padrón :cool: