You are here: Re: unlimeied cattegories,sub categories « PHP Language « IT news, forums, messages
Re: unlimeied cattegories,sub categories

Posted by Jim Michaels on 11/21/75 11:37

CREATE TABLE `dbo`.`categories` (
`cat_id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
`category` VARCHAR(100) NOT NULL DEFAULT '',
PRIMARY KEY(`cat_id`)
);

CREATE TABLE `dbo`.`subcategories` (
`sub_id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
`cat_id` INTEGER UNSIGNED NOT NULL DEFAULT 0,
`subcat_id` INTEGER UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY(`sub_id`)
);



I think you'll need a recursive function to traverse the tree. if you need
it, I can write one.

"Beshoo" <basheermoro@gmail.com> wrote in message
news:1136923318.502352.55300@z14g2000cwz.googlegroups.com...
> Heeeeey:
> I have a problem in making photo gallery so that I can add unlimeied
> cattegories,sub categories ??????
> I Tooke a look at "4 IMAGE scrtipt" the use ( id and P_id ) idea
> BUT, I cant get it ,so plz if you havr any wey out TEL ME
>
> THAAAAAANX in advance
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация