Suppose I have a query like this:

$query = "select A.id, B.id from foo A, bar B where A.bleh=B.blob;";
$result = pg_exec( $db, $query);
$obj = pg_fetch_object( $result, 0 );

My question is: How do I access the field names in the $obj now?
I know that I can transform the query to avoid this problem, or use a
function other than pg_fetch_object.  But I'm interested whether
pg_fetch_object _can_ be used here.

Many thanks,
-- 
Arcady Genkin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to