Re: PG Problems

From: "Brett W(dot) McCoy" <bmccoy(at)chapelperilous(dot)net>
To: ALASTAIR JOHN TAYLOR <ajt6(at)aber(dot)ac(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PG Problems
Date: 2000-04-21 14:24:09
Message-ID: Pine.LNX.4.10.10004211019490.15769-100000@chapelperilous.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 21 Apr 2000, ALASTAIR JOHN TAYLOR wrote:

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

What is it you think this is supposed to be doing? You are adding the
dereferenced values of these references to get a third reference? The
values of $result and $resulttwo aren't what you think they are. They
don't hold the actual value of a query, just a reference to the tuples
returned from the query. You still need to 'fecth' those results out,
even if you only have one row returned.

Brett W. McCoy
http://www.chapelperilous.net
---------------------------------------------------------------------------
When I first arrived in this country I had only fifteen cents in my pocket
and a willingness to compromise.
-- Weber cartoon caption

In response to

  • PG Problems at 2000-04-21 13:30:24 from ALASTAIR JOHN TAYLOR

Browse pgsql-general by date

  From Date Subject
Next Message Samuel A. Mullen 2000-04-21 14:30:02 COPY Question
Previous Message ALASTAIR JOHN TAYLOR 2000-04-21 13:30:24 PG Problems