|
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?
1 Answer
its easy just take a look here
Posted: MacOS 2 of 2 people found this answer helpful. Did you? Yes No 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)
?? |
© Advanced Web Core. All rights reserved

