Re: [Phplib-users] templates and tables
Brought to you by:
nhruby,
richardarcher
From: Jesse S. <ph...@sw...> - 2001-08-14 14:20:29
|
You may want to look at the table class. You pass it a SQL statement already ran through the $db->query() command and it builds the table for you from the data selected. You can even tell it you want to have column headers and it will pull them out of the select. > From: Guenther Theilen <th...@eq...> > Reply-To: Guenther Theilen <th...@eq...> > Date: Tue, 14 Aug 2001 15:44:30 +0200 > To: php...@li... > Subject: [Phplib-users] templates and tables > > Hi, > > as promised here is another newbie question... ;-) > I hope my English is good enough to explain the problem. > I'm looking for an elegant way to get data from a database into a > table. > In this special case, I've got a lot of links which are ordered by a > certain subject. Now I want this links to be put in a table with three > coloumns which is defined as a template. > The template looks something like this: > <table> > {linktype1} > </table> > <table> > {linktype2} > </table> > > It's no problem to replace {linktype1} by a couple of tablerows > existing of three coloums whith the links in it, although this doesn't > seem very elegant to me, especially if I (better: the designer) wants a > dot (gif-file) in front of every link. This dot is changing with the > template. > > Anybody any hints? > > Thanks for your patience. > > Guenther > > > _______________________________________________ > Phplib-users mailing list > Php...@li... > http://lists.sourceforge.net/lists/listinfo/phplib-users |