Hi,
I have the following fields in "Categories" table in MySQL:
cat_id: The category ID (0 is Main Category)
cat_title: The categoty title
subcat: It's for sub category.
for example:
I want to get The navigation for "IRAQ".
The navigation is:
News > Middle East > Arab Countries > IRAQ > Chlorine bombs kill 8 in Iraq
SQL Query:
CREATE TABLE `categories` (
`cat_id` int(11) NOT NULL auto_increment,
`title` varchar(50) default NULL,
`subcat` int(11) default NULL,
PRIMARY KEY (`cat_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `categories` VALUES (1, 'News', 0);
INSERT INTO `categories` VALUES (2, 'Middle East', 1);
INSERT INTO `categories` VALUES (3, 'Arab Countries', 2);
INSERT INTO `categories` VALUES (4, 'IRAQ', 3);
😕 any help?!!