Here is my trigger but i keep getting this error
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 '' at line 6
CREATE TRIGGER check_date
BEFORE INSERT ON rooms
FOR EACH ROW
BEGIN
UPDATE rooms
SET end_date = NULL, start_date = NULL, availabilty=y WHERE end_date < curdate();
END;