PHP variable scope problem
手机用户695453102
手机用户695453102 2018-12-14 10:57:23
0
1
1112

In the course chapter "File Uploading and List Paging Display",

  1. queries the article list. $artList is defined in the if judgment to determine whether cate_id exists. Then give The code for template assignment should be displayed as undefined.

  2. When judging whether cate_id exists, if it exists, the condition will include cata_id = the incoming cate_id, but the query for querying all files is directly added outside the judgment. I feel it should be After including the cate_id query, you should also query all articles.

手机用户695453102
手机用户695453102

reply all(1)
Peter-Zhu

It is recommended that you post the code together. It is difficult to answer just by describing it. I have many courses and it is impossible to remember all the details of each course

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!