FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Displaying parent and child using php and html tables





vignesh_natraj
I have a database and a table in it called cat I want to display the parent categories and its sub categories below it like this
Code:
Parent1                                                      Parent2
parent1's children                                           Parent2's children

the database table contains the following fields
id,parentid,name
if it is a top level category then parentid=0
else "if it a child of a category whose id is x then parentid=x
please help me
vignesh_natraj
I got it done please burry this topic
Related topics
how can i setup a page break for printer on html using php ?
[tutor] How to protect images without htaccess using PHP
HTML tables with irregular rows and/or columns
Reading word documents using PHP?
Table data print feature using php or javascript?
i want to dezign a website using php
Help displaying pdfs using PHP
I cant install php chat tables nor set up diffrent subdomain
Using PHP
Includ Images using PHP.
How to start using PHP? Help!
Website Designing using PHP
I am trying to build a contact form using php and flash
Communicating between web pages
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.