Re: [PHPLIB] show_table_cells() example? From: Brian Knotts (bknotts <email protected>)
Date: 10/27/99

On 27-Oct-99 Kristian Köhntopp wrote:

> Brian Knotts wrote:
>> I was just wondering if anyone has an example of the use of
>> show_table_cells().
>> I have developed a little web app, but want to get somewhat finer-grained
>> control of the output. I just can't seem to figure out how to use this
>> function, though.

> What exactly are you trying to achieve?

Basically, what I'm trying to do is to take my query:

$query = sprintf("select * from purchase_order_data where vendor_id like
 '%%%s%%'", $auth->auth[uname]);
$db->query($query);

and instead of just dumping it all out with $t->show_result($db, "metadata"),
I'd like to only display certain columns, instead of all of them.

> The CSV_Table class is a neat example how to subclass the Table class to
> get a completely different output format. Perhaps reading that class will
> help you to understand.

I have looked at that class before, thinking it might hold some clues; I will
take a closer look again. Thanks for the suggestion.

-- 
------------------------------------------------------------------------
Brian Knotts                                          bknotts <email protected>

- PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in the body, not the subject, of your message.