DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   PHP (http://www.daniweb.com/forums/forum17.html)
-   -   subcategory problem (http://www.daniweb.com/forums/thread163529.html)

knrakesh Dec 22nd, 2008 3:33 am
subcategory problem
 
hello friends
iam having a problem
if we want to add a category and subcategory in single page
and in a single database
in database can we able to
please help me in adding category and subcategory in a single page please

thank you
KNR

Shanti Chepuru Dec 22nd, 2008 5:07 am
Re: subcategory problem
 
you can't add category and subcategory at one page, because while adding the subcategory , we have to insert category id as its parent_id, so we don't insert category, we don't know under which category ,we are going to insert sub category
But we can use only on table to both...
And also your thread can be solved by triggers..
.


All times are GMT -4. The time now is 10:30 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC