skip to Main Content

display Category as (ul) item & Subcategory as (li) item in php

function showcategory($parentid) { $sql = "select * from categories where parent_id='".$parentid."'"; $result = mysqli_query($GLOBALS['conn'],$sql); $output ="<ul id ='tree1' >n"; while($data=mysqli_fetch_array($result)) { $output.="<li>n".$data['name']; $output.=showcategory($data['id']); $output.="</li>"; } $output.="</ul>"; return $output; } I have a treeview created using PHP, and the function that…

VIEW QUESTION

Reactjs – Kendo React TreeView CheckBox not working

Checking CheckBox inside TreeView is not working. This is the code. Treeview with CheckBox nodes inside expansion panel. <ExpansionPanel className='item-body-dropDownList' title={"Expension panel"} expanded={expanded === item.id} tabIndex={0} key={item.id} onAction={(event) => { setExpanded(event.expanded ? "" : item.id); }} > <Reveal> {expanded ===…

VIEW QUESTION
Back To Top
Search