PG Problems - Mailing list pgsql-general

From ALASTAIR JOHN TAYLOR
Subject PG Problems
Date
Msg-id 3.0.1.32.20000421143024.00901d60@pophost.aber.ac.uk
Whole thread Raw
Responses Re: PG Problems
How to get the size of a large object?
List pgsql-general
Hello,

I was wondering if anyone could help me with a little problem with the Pg
module - I've looked at the manual, but I can't work it out.....

------------------------------------------------------------
$conn = Pg::connectdb("host=...................");

$query = "select timeone from times where racer='$name'";
$result = $conn->exec($query);
$result->print(stdout, ..............);
------------------------------------------------------------

The above code works without any problem, as it should, and prints out a
value, but as soon as I try to add another query/result I get problems...

ie.
--------------------------------------------------------------
$querytwo = "select timetwo from times where racer='$name'";
$resulttwo = $conn->exec($querytwo);

$total = $result + $resulttwo;
$total->print(stout,..........);
--------------------------------------------------------------

I know the problem comes in with the addition of pointers, but I'm at a
dead-end.

Any suggestions?

Thanks in advance, Alastair


pgsql-general by date:

Previous
From: "Nathan L. Cutler"
Date:
Subject: Re: What are your using it for?
Next
From: "Brett W. McCoy"
Date:
Subject: Re: PG Problems