[Phplib-users] Re: templates and tables
Brought to you by:
nhruby,
richardarcher
From: Guenther T. <th...@eq...> - 2001-08-15 07:53:24
|
Hi Jesse, you wrote: > 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. Thanks for the tip, but now I've got problems to get the table-class to work together with the templates. Let's say I've got $foo which is sent to the template to replace {bar}. How do I get the results e.g. of show_result() into $foo? I tried $foo.=$table->show_result($db,$class=""); but this just prints out the results and doesn't put them into $foo. Where is my mistake? tia. Guenther |