Ver Mensaje Individual
  #15 (permalink)  
Antiguo 05/11/2008, 04:58
Avatar de jaronu
jaronu
 
Fecha de Ingreso: febrero-2008
Mensajes: 2.183
Antigüedad: 16 años, 2 meses
Puntos: 52
Respuesta: No me modifica los cambios

El codigo parece bien, pero prueba asi:


Código PHP:

<?php

$id
=$_GET['id'];

if (!isset(
$id)){ echo" nada";}
else{

$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) or die (mysql_error()); 
$sql2=("UPDATE room SET status_code='$status', room_number='$txtroom', room_ type_id='$room_type', ammenities='$txtarriveNotes', kitchenette='$kitchenette',std_rate='$txtweekday' ,special_rate_1='$txtweekend' where id='$id'"); 
$result=mysql_query($sql2,$conexion)or die (mysql_error()); 

}
?>
Un saludo