Only the next level can be found based on the id passed from the front end.
浮尘
浮尘 2022-08-15 23:54:11
0
2
1117

'pid'=>$id can only be found at the next level, but it should not be found at the next level, because the $id passed is fixed, and the grandson level cannot be deleted based on the parent level

浮尘
浮尘

搬砖搬砖

reply all(1)
autoload

If there is a lower level, the value of id should be an array. Just delete it directly. Why should we delete the grandson level?

If $id is a grandson-level value, just traverse it directly and delete it if you find it

  • reply Isn’t the video written about Infinitus classification? If the parent is deleted, but its children are not deleted, wouldn’t it be messy?
    浮尘 author 2022-08-26 12:24:35
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!