HTML_Table
| From: | leegold2 at verizon dot net | Date: | Mon, 27 Sep 2004 20:01:40 +0000 |
| Subject: | HTML_Table | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-14657@lists.php.net to get a copy of this message | ||
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);