Re: pg_query_params - Mailing list pgsql-php

From Carol Walter
Subject Re: pg_query_params
Date
Msg-id 07E5D103-2E8F-48EE-868E-8DAD10BE0C80@indiana.edu
Whole thread Raw
In response to Re: pg_query_params  (Bill Moran <wmoran@potentialtech.com>)
Responses Re: pg_query_params  (Bill Moran <wmoran@potentialtech.com>)
Re: pg_query_params  (Raymond O'Donnell <rod@iol.ie>)
List pgsql-php
No, I mean if I select select a name from the database but the name
isn't found.  I'm doing a log in form.  I want to check to see if the
user that's logging in exists in my database.  I can check the number
of rows returned or something like that, but I wondered if the
function returns a false.

Carol

On Jul 22, 2009, at 3:29 PM, Bill Moran wrote:

> In response to Carol Walter <walterc@indiana.edu>:
>
>> 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/


pgsql-php by date:

Previous
From: Bill Moran
Date:
Subject: Re: pg_query_params
Next
From: Bill Moran
Date:
Subject: Re: pg_query_params