Array to create parent/child list

I have the following function PHP Code: $menu_array = array();while ( $row = mysql_fetch_assoc($result) ){    $menu_array[] = array(‘id’ => $row[’sect_id’],’name’ => $row[’sect_name’],’parentId’ => $row[’sect_parent’]);} function buildTree($ar, $pid = 0) {    $op = array();    foreach( $ar as $item ) {        if( $item[’parentId’] == $pid ) {            $op[$item[’id’]] = array(                ’name’ => $item[’name’],                ’parent’ => $item[’parentId’]            );            // using recursion            $children =  buildTree( $ar, $item[’id’] );            if( $children ) {                $op[$item[’id’]][’children’] = $children;            }        }    }    return $op;} echo ”<pre>”;print_r( buildTree( $menu_array ) );echo ”</pre>”  that when called creates the array below Code: Array (     [20] => Array         (             [name] => About us             [parent] => 0             [...]

Please review my list site http://www.themost10.com/

It is so new for now. Please tell me any suggestions. Good or bad. Thank you http://www.themost10.com/ View full post on Tycoon Talk

Anybody just have tab text file list.

Anybody just have a nice big list in text form? Like several thousand directories. I’m willing to trade my big lists. Oh, I’m also working on a list that doesn’t have CAPTCHAs. I seem to always get links to sites that will have to manually review several thousand directories just to get a few hundred [...]

Anybody just have tab text file list.

Anybody just have a nice big list in text form? Like several thousand directories. I’m willing to trade my big lists. Oh, I’m also working on a list that doesn’t have CAPTCHAs. I seem to always get links to sites that will have to manually review several thousand directories just to get a few hundred [...]

Anybody just have tab text file list.

Anybody just have a nice big list in text form? Like several thousand directories. I’m willing to trade my big lists. Oh, I’m also working on a list that doesn’t have CAPTCHAs. I seem to always get links to sites that will have to manually review several thousand directories just to get a few hundred [...]

WordPress Category List

I’m developing a theme with a css drop down menu if I click a link from a specific parent category the top of the selected category it should list the other child categories in a nice horizontal menu. I found this reference earlier Code: $cat_id = get_query_var(‘cat’);  wp_list_categories(‘orderby=id&title_li=&child_of=’ . $cat_id); I put this into my [...]

Directory list

Can anyone post me a list of instant approved directory list. View full post on Tycoon Talk

Need a List of Social Bookmarking Websites

I have a local project of uk. i need some directories and social bookmarking website. Also if you have some advise about how to promote a website country-wise?, then please share with me. View full post on Tycoon Talk

List of free classified sites

Hi People, I want to share few free classified sites which can be used for online marketing. Below is the list http://craigslist.org http://zonaltrade.com http://backpages.com http://olx.com http://kijiji.com http://gumtree.com http://quickr.com Enjoy ! View full post on Tycoon Talk

Top 10 Free SEO Tips List for January Released by JM Internet Group

Questions and answers on Search Engine Optimization by JM Internet Group. Leading SEO Training company provides free SEO tips service.Fremont, CA (PRWEB) February 20, 2012 The JM Internet Group (web: jm-seo.org), a leader in providing Search Engine Optimization (SEO) online, is proud to announce their January list of the Top Ten Free SEO Tips (Questions [...]

Get Adobe Flash playerPlugin by wpburn.com wordpress themes


RSS Site FeedRSS Site Feed

© 1992-2011 DC2NET™, Inc. All Rights Reserved