Good morning I want to make a call of this php logic inside a html div but when passing it as a function the logic breaks since it does not send an error message in case of