search

Home  >  Q&A  >  body text

Only the next level can be found based on the id passed from the front end.

'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

浮尘浮尘821 days ago1126

reply all(2)I'll reply

  • autoload

    autoload2022-08-16 12:06:20

    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
    0
  • 浮尘

    Isn’t the video written about Infinitus classification? If the parent is deleted, but its children are not deleted, wouldn’t it be messy?

    浮尘 · 2022-08-26 12:24:35
  • Cancelreply