PG Problems

From: ALASTAIR JOHN TAYLOR <ajt6(at)aber(dot)ac(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: PG Problems
Date: 2000-04-21 13:30:24
Message-ID: 3.0.1.32.20000421143024.00901d60@pophost.aber.ac.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Brett W. McCoy 2000-04-21 14:24:09 Re: PG Problems
Previous Message SUDDN 2000-04-21 03:59:37 Where can I get free ODBC drivers for postgres?