
05/11/2008, 10:36
|
 | | | Fecha de Ingreso: febrero-2008
Mensajes: 2.183
Antigüedad: 17 años, 1 mes Puntos: 52 | |
Respuesta: No me modifica los cambios el error empieza dosde he puesto las negritas
$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");
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'type_id=1, ammenities=Telephone, shower, iron and board, luggage rac, hair dryer' at line 2
revisa sean esos los nombres correvtos de tus campos de la bbdd.
y fijate como insertates los valores la primera vez y al actualizar haz lo mismo.
Un saludo |