我想递归选择当前类别的所有子类别
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<div class='header'>SISTEMA CONTROLE DE CURSOS</div>
<div class='mainwindow'>
<div class='menupane'>
<div id='entity' class='menuitem'>
<p class='glyphicon glyphicon-triangle-right'>ENTITIES</p>
</div>
<div class='menuitem'>
<p class='glyphicon glyphicon-triangle-right'>COURSES</p>
</div>
<div class='menuitem'>
<p class='glyphicon glyphicon-triangle-right'>STUDENTS</p>
</div>
<div class='menuitem'>
<p class='glyphicon glyphicon-triangle-right'>CLASSES</p>
</div>
<div class='menuitem'></div>
</div>
<div class='contentpane'></div>
</div>
并通过返回的catid(s)选择地图表中的所有postid
Table: categories
Columns: catid, parent_id, cattitle
最后回复帖子表中的所有帖子主题和来自附件表的thumnail图像
Table: posts_categories
Columns: postid, catid
我的目的是回复当前类别和子类别的所有帖子,其中包含一个thumnail附件,在php by pdo
开始获取子类别的一些代码...
Table: posts in multi categories
Columns: postid, postsubject
Table: attachments
Columns: attid, postsID,atturl
但我没有取得成果