TRIGGER ERROR HANDLING ADDED IN PHP2