[PHP-DB] Resolved: [PHP-DB] Column headers

2002-07-02 Thread Casey Allen Shobe
On Tuesday 02 July 2002 11:18 am, Casey Allen Shobe wrote: > Oh, and what's the difference between [int field_number] and [int > field_offset] (from odbc_field_name and sybase_fetch_field manual pages)? > Are they the same, or is the offset one number less than the field number, > or is it somethi

Re: [PHP-DB] Column headers

2002-07-02 Thread Casey Allen Shobe
On Tuesday 02 July 2002 11:09 am, Casey Allen Shobe wrote: > Following up. I found sybase_fetch_field, which fetches field information, > including the column name, into an object. > > So now my question is, what is an object? And how would I go about getting > the information I need out of it?

Re: [PHP-DB] Column headers

2002-07-02 Thread Casey Allen Shobe
Following up. I found sybase_fetch_field, which fetches field information, including the column name, into an object. So now my question is, what is an object? And how would I go about getting the information I need out of it? Thanks. On Tuesday 02 July 2002 11:03 am, Casey Allen Shobe wrot

Re: [PHP-DB] Column headers

2002-07-02 Thread Casey Allen Shobe
On Tuesday 02 July 2002 10:32 am, Bogdan Stancescu wrote: > odbc_num_fields() and odbc_field_name() in this case :-) Thanks, that works! Now, any advice for sybase? There's a sybase_num_fields function, but nothing to get the columnname that I can see. Thanks again in advance, -- Casey Alle

Re: [PHP-DB] Column headers

2002-07-02 Thread Bogdan Stancescu
odbc_num_fields() and odbc_field_name() in this case :-) Bogdan Casey Allen Shobe wrote: >Whoops, should have been more clear. > >I'm looking for something to work with ODBC, and also Sybase. I'm already >fetching the data fine, but can't figure out how to get the column headers. > >On Tuesda

Re: [PHP-DB] Column headers

2002-07-02 Thread Casey Allen Shobe
Whoops, should have been more clear. I'm looking for something to work with ODBC, and also Sybase. I'm already fetching the data fine, but can't figure out how to get the column headers. On Tuesday 02 July 2002 09:50 am, Casey Allen Shobe wrote: > How can I get the column headers from a query?

Re: [PHP-DB] Column headers

2002-07-02 Thread Bogdan Stancescu
For MySQL, see mysql_num_fields() and mysql_fetch_field() at http://www.php.net HTH Bogdan Casey Allen Shobe wrote: >How can I get the column headers from a query? > >For example, on a 'select blah, blah2, blah3, something as blah4 from >whereever', I would want the blah, blah2, blah3, blah4

[PHP-DB] Column headers

2002-07-02 Thread Casey Allen Shobe
How can I get the column headers from a query? For example, on a 'select blah, blah2, blah3, something as blah4 from whereever', I would want the blah, blah2, blah3, blah4, preferably in an array. Thanks, -- Casey Allen Shobe / Network Security Analyst & PHP Developer SecureWorks, Inc. / 404