Re: generating multiple tables with Console_Table
| From: | Xnoguer | Date: | Sat, 29 Mar 2003 15:33:05 +0000 |
| Subject: | Re: generating multiple tables with Console_Table | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-14723@lists.php.net to get a copy of this message | ||
That seems to have been fixed in the latest release (1.0.1). Which version
are you using?
--------- Original Message --------
From: culley harrelson <culley@ml1.net>
To: pear-dev@lists.php.net <pear-dev@lists.php.net>
Cc: Richard Heyes <richard@phpguru.org>
Subject: [PEAR-DEV] generating multiple tables with Console_Table
Date: 29/03/03 07:39
>
> I have been using console table to generate email-based reports and when
> you try to display 2 tables back to back the static setting of $return in
> _getSeparator() persists and screws up the width of the second tabe:
>
> <?php
> require_once("Console/Table.php");
> $tbl =& new Console_Table();
>
> $tbl->setHeaders(array('tbl 1 - col 1', 'tbl 1 - col 2', 'tbl 1
> - col
> 3'));
> $tbl->addRow(array('data 1', 'data 2', 'data 3'));
>
> echo "Table 1n";
> echo $tbl->getTable();
> echo "nn";
>
> $tbl =& new Console_Table();
> $tbl->setHeaders(array('tbl 2 - col 1', 'tbl 2 - col 2'));
> $tbl->addRow(array('data 1', 'data 2'));
>
> echo "Table 2n";
> echo $tbl->getTable();
> echo "nn";
> ?>
>
> The static setting is just so it doesn't have the calculate the value
> repeatedly right?
>
> culley
>
> --
> PEAR Development Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>
>