My previous verification was OK. When I finished the execution, I finished the if statement and connected to the database. When I refreshed the page again, "page error" appeared. I verified the code repeatedly. I also tried using other databases. There is no problem in connecting by creating a function and then connecting it to read data. May I ask how is this going? How to solve it?
This is the execution code
Enable debug and see what the error message is and the number of lines where the error is reported.