Re: generating multiple tables with Console_Table

From: 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: > > &lt;?php > require_once(&quot;Console/Table.php&quot;); > $tbl =&amp; new Console_Table(); > > $tbl-&gt;setHeaders(array('tbl 1 - col 1', 'tbl 1 - col 2', 'tbl 1 > - col > 3')); > $tbl-&gt;addRow(array('data 1', 'data 2', 'data 3')); > > echo &quot;Table 1n&quot;; > echo $tbl-&gt;getTable(); > echo &quot;nn&quot;; > > $tbl =&amp; new Console_Table(); > $tbl-&gt;setHeaders(array('tbl 2 - col 1', 'tbl 2 - col 2')); > $tbl-&gt;addRow(array('data 1', 'data 2')); > > echo &quot;Table 2n&quot;; > echo $tbl-&gt;getTable(); > echo &quot;nn&quot;; > ?&gt; > > 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 > > > > > >

« previous php.pear.dev (#14723) next »