Code Comments
Programming Forum and web based access to our favorite programming groups.Hi, Cliff wrote: > I have a problem with HTML_Template_Sigma. > > http://pearbb.net > When you hover over a category link (the orange div ones), it links to > forum-.php > It should, however, link to forum-{id}.php > Something must have gone wrong with setting the variable, as the > variable itself holds the id correctly. > > http://pearbb.net/Includes/main.phps - the code > http://pearbb.net/Templates/1/boards.tpl - the template > > Could somebody please assist me with this? Your problem has little to do with HTML_Template_Sigma, there is a problem i n your code here: while( $roots = $result->fetchrow(DB_FETCHMODE_ASSOC) ) { $this->roots[]['id'] = $roots['id']; $this->roots[]['name'] = $roots['name']; } You get an array of the following structure from this: array( array('id' => id), array('name' => name), array('id' => id), array('name' => name) ); I bet that's not exactly the thing you wanted... I suggest starting with something less complicated than a full-blown bulleti n board if you want to learn PHP by creating an OpenSource project.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.