Re: HTML_Table dynamically adding <n> columns, to each row

From: Date: Fri, 17 Dec 2004 16:55:42 +0000
Subject: Re: HTML_Table dynamically adding <n> columns, to each row
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16291@lists.php.net to get a copy of this message
Christopher Walsh wrote:
greetings,
    I am working on an image gallery, and I canot, for the life of me, figure out how to create a table 4 columns wide (i.e. add a column ++, then on the 4th, add the next row, and so on...). I can only get the table to go either 1 column over, or one row over. Any help would be appreciated.
CJ Does:-
$table = new HTML_Table($tableAttrs); $table->setAutoGrow(true); not work for you? Any calls to setCellContents thereafter will grow the table to accommadate. You can also set what is written into all the other cells that were added with the command:- $table->setAutoFill("n/a"); Is this what your looking for? Arthur.

« previous php.pear.general (#16291) next »