Ver Mensaje Individual
  #10 (permalink)  
Antiguo 04/11/2008, 21:07
Avatar de jaronu
jaronu
 
Fecha de Ingreso: febrero-2008
Mensajes: 2.183
Antigüedad: 17 años
Puntos: 52
Respuesta: No me modifica los cambios

tambien te aconsejo poner un ELSE al final para saber si hay error.

Código PHP:

if ($_GET[Save]){
$status=$_GET['status'];
$txtroom=$_GET['txtroom'];
$room_type=$_GET['room_type'];
$txtarriveNotes=$_GET['txtarriveNotes'];
$kitchenette=$_GET['kitchenette'];
$txtweekday=$_GET['txtweekday'];
$txtweekend=$_GET['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); 

}
else
{
echo
"no se realizo el update";
}

?>