is this good way to code breadcrumbs?
- create table “categories” using mysql
- create after neccessary columns “parent_id” column
- if parent_id column have null value it means that this category is parent and if else this columns parent is a column with id which marked in “parent_id” column
- recursively query to “parent_id” column starting at current column and print category name.
Breadcrumbs are easier if you use other methods of storing hierarchical data.
See my presentation Models for Hierarchical Data with SQL and PHP for examples of alternatives: