我有一个具有以下结构的表,
FIELD TYPE EXTRA
faciltiy_id int auto_increment(Primary Key)
hotel_id int
facility_title varchar(20)
facility_desc varchar(300)
当我想删除特定行时,facility_id
我使用代码,
DELETE
FROM $hotel_facilities
WHERE facilities_id = '$facilities_id'";
但不是整行,只有facility_title
andfacility_desc
字段被删除。如果我直接通过 phpmyadmin 在表上运行此查询,则它可以正常工作。
谁能告诉我我做错了什么?