Re: PG Problems
От | Brett W. McCoy |
---|---|
Тема | Re: PG Problems |
Дата | |
Msg-id | Pine.LNX.4.10.10004211019490.15769-100000@chapelperilous.net обсуждение исходный текст |
Ответ на | PG Problems (ALASTAIR JOHN TAYLOR <ajt6@aber.ac.uk>) |
Список | 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
В списке pgsql-general по дате отправления: