¡@

Home 

php Programming Glossary: fetch_recursive

Get all child, grandchild etc nodes under parent using php with mysql query results

http://stackoverflow.com/questions/11497202/get-all-child-grandchild-etc-nodes-under-parent-using-php-with-mysql-query-resu

got a solution for that .I want to build a function fetch_recursive id which receives an ID and returns all the items in that level.. having to first go through a buildtree function function fetch_recursive src_arr currentid parentfound false cats array foreach src_arr.. if row 'parent_id' currentid cats array_merge cats fetch_recursive src_arr row 'id' true return cats To use the function above..