CREATE TRIGGER leave_trigger
AFTER INSERT ON leaveapplication
FOR EACH ROW
IF employeemaster.empcode='".$empcode."' THEN
UPDATE employeemaster SET '".$leave_type=$leave_type."'-$numberofleave //I am facing problem here
END IF;
構文的に与えられたものを修正する$leave_type
のを手伝っvarchar
てください。$numberofleave
integer