Re: HTML_Table
| From: | leegold | Date: | Tue, 28 Sep 2004 01:20:23 +0000 |
| Subject: | Re: HTML_Table | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14659@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
On Mon, 27 Sep 2004 20:01:40 +0000, leegold2@verizon.net <leegold2@verizon.net> wrote:Sure did! I should of mentioned, I did read the manual esp. the link below, I did not understand how, and that's precisely why I'm asking specifically how. OK? Since the manual has examples only in the intro and not per each object method (which would be nice) I'm having trouble. So I'd appreciate a snippet - Thanks.I have a table with three columns. I want to make the first col. "nowrap". So I have this working, but I can't figure out to to make one particular col. for every row nowrap. Thanks, require_once "HTML/Table.php"; $table = new HTML_Table("table border=0 cellpadding=10 cellspacing=5"); $table -> setAutoGrow(true); $table -> setAutoFill("n/a"); $table -> setHeaderContents(0, 0, "Title"); $table -> setHeaderContents(0, 1, "URL"); $table -> setHeaderContents(0, 2, "Description"); $hrAttrs = array("bgcolor" => "#D9D9F3"); $table -> setRowAttributes(0, $hrAttrs, true);RTFM
http://pear.php.net/manual/en/package.html.html-table.html-table.setcolattributes.php