From: Hajek, Nick <Nick.Hajek@Vishay.com>
To: Eric Chamberlain <Eric.Chamberlain@zonarsystems.com>
To: pgsql-php@postgresql.org
Subject: Re: Stored procedures, PDO, and PHP issue
Date: Wed, 19 Aug 2009 15:42:20 -0500
Message-ID: <AFD16ED07E37C64D963DA24840AA31F2068F09E1@EVSCO01.na.vishayint.com> (raw)
In-Reply-To: <A11E730E-82D7-4EE6-AD80-ECD95982D78A@zonarsystems.com>
>>> $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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: Nick.Hajek@Vishay.com, Eric.Chamberlain@zonarsystems.com
Subject: Re: Stored procedures, PDO, and PHP issue
In-Reply-To: <AFD16ED07E37C64D963DA24840AA31F2068F09E1@EVSCO01.na.vishayint.com>
References: <A11E730E-82D7-4EE6-AD80-ECD95982D78A@zonarsystems.com> <AFD16ED07E37C64D963DA24840AA31F2068F09E1@EVSCO01.na.vishayint.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox