Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 7D24A633BAF for ; Wed, 22 Jul 2009 16:48:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 22973-01-2 for ; Wed, 22 Jul 2009 16:48:23 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mail.postgresql.org (Postfix) with ESMTP id 9B49A634C4F for ; Wed, 22 Jul 2009 16:31:26 -0300 (ADT) Received: from vanquish.ws.pitbpa0.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTPSA id BD493EBC0A; Wed, 22 Jul 2009 15:31:24 -0400 (EDT) Date: Wed, 22 Jul 2009 15:29:38 -0400 From: Bill Moran To: Carol Walter Cc: pgsql-php@postgresql.org Subject: Re: pg_query_params Message-Id: <20090722152938.402f6228.wmoran@potentialtech.com> In-Reply-To: <889FC92A-B6F2-4276-BFD7-E0061ACC73B6@indiana.edu> References: <889FC92A-B6F2-4276-BFD7-E0061ACC73B6@indiana.edu> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.14.7; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.464 tagged_above=-10 required=5 tests=AWL=-0.464 X-Spam-Level: X-Archive-Number: 200907/6 X-Sequence-Number: 4036 In response to Carol Walter : > Does pg_query_params return a false if an item is not found in a > database? What's an item? That term is does not describe any type of standard database object. pg_query_params() will return false if the query was invalid for any reason. One such possible reason is that you tried to access a table that doesn't exist. If you're getting false as the return value, you should use pg_last_error() to discover the details of the error. -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/