Teacher, I followed your operation step by step. When it comes to encapsulating the database access class, the web page prompts: Page error, please try again later!
I assign simple numbers to $res and it can be displayed normally.
Try to enable debug first to see what went wrong
Try to enable debug first to see what went wrong