[PHP-DB] Application name reporting

2002-06-14 Thread Casey Allen Shobe
s I do 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 Da

[PHP-DB] Unified DB Query function

2002-07-01 Thread Casey Allen Shobe
re? } return $data; } If anyone could 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

Re: [PHP-DB] Unified DB Query function

2002-07-01 Thread Casey Allen Shobe
re? } return $data; } Thanks, -- 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

Re: [PHP-DB] Unified DB Query function

2002-07-01 Thread Casey Allen Shobe
// What do I put here? while ($row = sybase_fetch_array ($result)) { $data[0][] = $row; } $data[1] = sybase_num_rows ($result); } return $data; } -- Casey Allen Shobe / Network Security Analyst & PHP De

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

2002-07-01 Thread Casey Allen Shobe
ave a sybase module anyways, 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 Secu

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

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 he

Re: [PHP-DB] Column headers

2002-07-02 Thread Casey Allen Shobe
- 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 List (http://www.php.net/) To unsubs

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

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

2002-07-02 Thread Casey Allen Shobe
same. $foo = mysql_query(' 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

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

[PHP-DB] Datetime field comparison incorrect

2002-07-06 Thread Casey Allen Shobe
han 'Jul 06 2002 01:08PM', 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 /

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