Re: Help with PEAR HTML_Table
| From: | Justin Patrin | Date: | Wed, 15 Sep 2004 20:17:22 +0000 |
| Subject: | Re: Help with PEAR HTML_Table | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14544@lists.php.net to get a copy of this message | ||
On Wed, 15 Sep 2004 19:41:36 +0000, leegold2@verizon.net
<leegold2@verizon.net> wrote:
> I have a situation for showing one record:
> <table>
> <tr>
> <td>title</td><td>author</td><td>price</td>
> </tr>
> <tr>
> <td>description</td>
> </tr>
> </table>
>
> Since description is about a paragraph of text you can see the layout I want.
Well, no I can't the above doesn't show what you want at all. You need
to specify what you want, never assume.
> Of course this block would be a PHP loop pulling from an array php/Mysql "result"
> query. How can I implement this with HTML_Table? I see the excellent example in the HTML_Table
> intro. doc. but it applies to a case were each "tr" is one record. In my case a record is
> two "tr's" in a table(?) or is there another way w/HTML_table that's better?
>
I'm going to assume here that what you want is to make the
"decription" td span the entire row. In this case, you need to use
colspan:
<td colspan="3">description</td>
Yes, it's possible with HTML_Table. You can set it up in any of the
"attribute" functions or parameters.
--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder
paperCrane --Justin Patrin--