Hello friends
please tell how to add ssubcategories and editing in a single page
please provide code if u have
i worked on that but iam getting errors
please help me in solving the problem
knrakesh 0 Light Poster
Recommended Answers
Jump to Posthello
this is same as add/edit category..
the only difference is we are showing categories and sub categories..thats all..remaining is same...
k try again, you will get...
Jump to Posthi rakesh,
for subcategory u first create table with prid,parentid name,title..etc
and then write query as$qry2="INSERT INTO `cf_posts`(`parentid`,`title`,`content`,`dateadded`,`author`) values('".$_POST['selcategory']."','".$_POST['title']."','".$_POST['description']."',now(),'admin')"; $res2=mysql_query($qry2) or die(mysql_error());
selcategory is the selection box which has category list
<select name="selcategory" class="box" id="selcategory"> <option value="">------Selectcategory-------</option> <? $qry4="SELECT * FROM cf_forums WHERE …
All 5 Replies
Shanti C 106 Posting Virtuoso
ashafaaiz 0 Newbie Poster
knrakesh 0 Light Poster
praveen_dusari 11 Posting Whiz in Training
knrakesh 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.