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
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
($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
, 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
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
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
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
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
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
('
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
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
', 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
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
13 matches
Mail list logo