Re: Stored procedures, PDO, and PHP issue

From: "Ronald D(dot) Willis" <webmaster(at)rdwonline(dot)com>
To: PostgreSQL PHP <pgsql-php(at)postgresql(dot)org>
Subject: Re: Stored procedures, PDO, and PHP issue
Date: 2009-09-09 05:24:32
Message-ID: 4AA73C10.2080709@rdwonline.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

Add this as a PDO option

array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION)

I bet there's a PDOException being thrown and I would NOT be at all
surprised if it is a HY000 error where PDO is complaining about
unbuffered queries....

On 2009-08-19 20:47, Eric Chamberlain wrote:
> Wow, I apologize. The code is exactly like what yours is. In my rush
> I missed the correct code.
>
> Eric
>
> > >>> $stmt->bindParam(1, $userId, $hashPass, PDO::PARAM_INT);
> >
> >
> > You should be calling bindParam once for each parameter
> > $stmt->bindParam(1, $userId, PDO::PARAM_INT);
> > $stmt->bindParam(2, $hashPass, PDO::PARAM_STR);
> >
> >
> > Nick
> >
>
>

Browse pgsql-php by date

  From Date Subject
Next Message Santiago Galindo 2009-09-10 03:48:54 Web based visual query builder
Previous Message Jasen Betts 2009-09-07 10:49:42 Re: How to select the source ip address for a connection to the database server