I have a table
id,name,parent_id,designation,
I want to create a tree through a recursive function in php.
each parent_idis in the column id, and if the user enters a login, then the user can see their own and all below entries in accordance with parent_id.
like
a | In | with | D | E | F
if the user login, then it can do everything (A, B, C, D, E, F) details.and if B login, then look (B, c, D, E, F) and like everyone else ... if F then he can only see his own records .. Thanks for the promotion
source
share