Hi, I'm trying to create and save breadcrumbs from recursive function.

I manage to display hierarchical tree using recursive function.

but I'm I am having hard time creating breadcrumb and save them one by one to my database.

here is my table

    cat_id parent_id title
        10     0        shoes
        11     0        clothes
        12     10       socks
        13     11       long-sleve
        14     11       T-shirts
        ...

My desire output is like this:

Home > Category1 > item
Home > Category1 > item
Home > Category1 > item

Home > Category2 > item
Home > Category2 > item

Any idea thanks..