function get_id(int p_id)
{
execut this line----
-> "select id from table_name where parent="+p_id+"";
it will return a result set
in while loop access all its ids
while(rs.next())
{
get_id(rs(0));
}
}
in this way we can get all child elements of a certain parent element