After completing the video, print the information and prompt that the page cannot be found
The contents of the Test.php file are as follows:
The Sysdb.php file is as follows
The directory structure is as follows:
I checked the video 3-4 times and couldn’t find it. Where is the problem? It seems to be the file access location. There is no problem with the administrator page created in the previous section.
The database is also configured
Database information
phpstudy configuration information path is a bit different from the video, but the administrator can access it in the backend. The problem should not be here.
Please help me to give some advice, I don’t want to give up halfway again. .
The screenshot of the Test.php file was posted wrongly. The problem should be 1. First open app_debug in config.php, so that it is easier to find the problem. 2. When accessing, a syntax error message is given. The where condition of 'id'=1 is changed to 'id'=>1 When accessing again, it should be normal. This should be because the database does not have data