Re: Stored procedures, PDO, and PHP issue

From: Eric Chamberlain <Eric(dot)Chamberlain(at)zonarsystems(dot)com>
To: "Hajek, Nick" <Nick(dot)Hajek(at)Vishay(dot)com>
Cc: "pgsql-php(at)postgresql(dot)org" <pgsql-php(at)postgresql(dot)org>
Subject: Re: Stored procedures, PDO, and PHP issue
Date: 2009-08-19 20:47:06
Message-ID: 62DC7EB1-B4BB-4289-B880-4C7AD1B1AF02@zonarsystems.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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
>

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Eric Chamberlain 2009-08-19 20:58:04 Re: Stored procedures, PDO, and PHP issue
Previous Message Andy Shellam 2009-08-19 20:44:34 Re: Stored procedures, PDO, and PHP issue