Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-php by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group