[PHP-DB] Application name reporting

2002-06-14 Thread Casey Allen Shobe
not keep up with all the traffic on this list. -- Casey Allen Shobe / Network Security Analyst PHP Developer SecureWorks, Inc. / 404.327.6339 x169 / Fax: 404.728.0144 [EMAIL PROTECTED] / http://www.secureworks.net Content is my own and does not necessarily represent my company. -- PHP Database Mailing

[PHP-DB] Unified DB Query function

2002-07-01 Thread Casey Allen Shobe
tell me what I could put in the sybase if statement to return data in an identical format as that returned by the odbc if statement, I would greatly appreciate it! I'm somewhat at a loss as the sybase commands are quite different from the odbc commands. Thanks in advance, -- Casey Allen Shobe

Re: [PHP-DB] Unified DB Query function

2002-07-01 Thread Casey Allen Shobe
($row = sybase_fetch_array ($result)) { $data[0][] = $row; } $data[1] = sybase_num_rows ($result); } return $data; } -- Casey Allen Shobe / Network Security Analyst PHP Developer SecureWorks, Inc. / 404.327.6339 x169 / Fax

Re: [PHP-DB] Re: Unified DB Query function

2002-07-01 Thread Casey Allen Shobe
, and they appear to be separate classes for each database, whereas I wanted one for all. Perhaps however I am misreading the site, but it won't let me very far without a username and password. -- Casey Allen Shobe / Network Security Analyst PHP Developer SecureWorks, Inc. / 404.327.6339 x169

[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

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 Casey Allen Shobe
Allen Shobe / Network Security Analyst PHP Developer SecureWorks, Inc. / 404.327.6339 x169 / Fax: 404.728.0144 [EMAIL PROTECTED] / http://www.secureworks.net Content is my own and does not necessarily represent my company. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http

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

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? Oh

Re: [PHP-DB] multiple queries in a row

2002-07-02 Thread Casey Allen Shobe
(' select something fromsomewhere; select something_else fromsomewhere_else; ', $link_id); -- Casey Allen Shobe / Network Security Analyst PHP Developer SecureWorks, Inc. / 404.327.6339 x169 / Fax: 404.728.0144 [EMAIL PROTECTED] / http://www.secureworks.net Content is my own and does

[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 something

[PHP-DB] Datetime field comparison incorrect

2002-07-06 Thread Casey Allen Shobe
', which is obviously not true. Assuming that the first value mentioned is $var1, and the second $var2, here's how I'm comparing: if ($var1 $var2) { echo $var1.' is greater than '.$var2; } Thanks in advance, -- Casey Allen Shobe / Network Security Analyst PHP Developer SecureWorks, Inc

[PHP-DB] SQL mailing list

2002-07-09 Thread Casey Allen Shobe
Do any of you know of any good, general SQL discussion mailing lists? Preferably DB-independent. I'd like to find a place to ask SQL questions and get a human response... TIA, -- Casey Allen Shobe / Network Security Analyst PHP Developer SecureWorks, Inc. / 404.327.6339 x169 / Fax