Ver Mensaje Individual
  #11 (permalink)  
Antiguo 04/11/2008, 21:49
RicardoU
(Desactivado)
 
Fecha de Ingreso: mayo-2007
Mensajes: 547
Antigüedad: 17 años
Puntos: 1
Respuesta: No me modifica los cambios

Este seria mi codigo utilizando el metodo post en la otra seccion , ya agregue el siguiente action al formulario action="save.php" Method=Post
me envia perfectamente a la nueva pagina pero no me lo guarda.


$status=$_POST['status'];
$txtroom=$_POST['txtroom'];
$room_type=$_POST['room_type'];
$txtarriveNotes=$_POST['txtarriveNotes'];
$kitchenette=$_POST['kitchenette'];
$txtweekday=$_POST['txtweekday'];
$txtweekend=$_POST['txtweekend'];

include ("../include/conexion.php");
$db=mysql_select_db($base,$conexion);
$sql2=("UPDATE room SET status_code='$status',room_number='$txtroom',room_ type_id='$room_type',ammenities='$txtarriveNotes', kitchenette='$kitchenette',kstd_rate='$txtweekday' ,special_rate_1='$txtweekend'where '$id'=id");
$result=mysql_query($sql2,$conexion);