Have an account? Sign in
Login  Register  Facebook
categories and php
hi its me again:D

i have a database like
CREATE TABLE IF NOT EXISTS `categories` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `parent` int(10) unsigned NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1;


INSERT INTO `categories` (`id`, `name`, `parent`) VALUES
(NULL, 'saman', 0),
(NULL, 'suzan', 0),
(NULL, 'saeed', 2),
(NULL, 'sadegh', 3);


and i want get somthing like Suzan>Saeed>Sadegh with php and mysql

this is like WordPress system categories but i dont know how to make that
can u help me?
Started: September 22, 2011 Latest Activity: September 22, 2011 category
1 Answer
its easy just take a look here

Posted: MacOS
In: September 22, 2011

how i can make this function too seo friendly url like (index.php?id=2/3 for id=3) or (index.php?id=2/3/5 for id 5) ??
September 22, 2011

Your Answer

xDo you want to answer this question? Please login or create an account to post your answer