I have no idea why am I getting that error at the end of this line
$sql = "INSERT INTO person (Name,Email,Date,Gender,WardType)
VALUES ('$Name','$Email','$Date','$Gender','$WardType')");
Suppose the closing was supposed to be such? or ');
but they all giving me the error.