pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lynna Landstreet <lynna@spidersilk.net>
To: PgSQL-PHP Mailing List <pgsql-php@postgresql.org>
Subject: Re: Retrieving result of COUNT(*) with PHP
Date: Thu, 29 Mar 2007 09:27:22 -0400
Message-ID: <C23136FA.4B0B0%lynna@spidersilk.net> (raw)
In-Reply-To: <C2307CCD.4B00C%lynna@spidersilk.net>

Hi there,

OK, in tinkering around with this further, I seem to have solved it, and
everything is working now - thought I'm still not 100% sure why it wasn't
before!

I did find an error in the count_query string at one point that would have
accounted for it bringing up a different result than the actual number of
results the search query brought in - but I'm reasonably sure at some point
during this I had copied and pasted the count query into phpPgAdmin and
gotten a result that was consistent with the search query, but then got a
different result in my PHP script. Still not sure how that happened...

But anyway, the important part is it's working now. Thanks to everyone who
replied!


Lynna

-- 
Spider Silk Design - http://www.spidersilk.net
509 St Clair W Box 73576, Toronto ON Canada M6C 1C0
Tel 416.651.2899 - Toll Free 1.866.651.2899 - Cell 416.873.9289



view thread (15+ messages)

Message-ID: <C23136FA.4B0B0%lynna@spidersilk.net>
Permalink:  ../C23136FA.4B0B0%25lynna@spidersilk.net/
Also on:    postgresql.org/message-id/C23136FA.4B0B0%lynna@spidersilk.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: lynna@spidersilk.net
  Subject: Re: Retrieving result of COUNT(*) with PHP
  In-Reply-To: <C23136FA.4B0B0%lynna@spidersilk.net>
  References: <C2307CCD.4B00C%lynna@spidersilk.net> <C23136FA.4B0B0%lynna@spidersilk.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox