Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 4946A63266B for ; Wed, 19 Aug 2009 17:47:34 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 58656-09 for ; Wed, 19 Aug 2009 20:47:24 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.zonarsystems.com (mail.zonarsystems.com [72.37.234.108]) by mail.postgresql.org (Postfix) with ESMTP id 5E48F632342 for ; Wed, 19 Aug 2009 17:47:24 -0300 (ADT) Received: from eric-mbp.zcorp.zonarsystems.com (10.0.1.22) by mail.zonarsystems.com (10.0.0.23) with Microsoft SMTP Server (TLS) id 8.1.393.1; Wed, 19 Aug 2009 13:48:44 -0700 CC: "pgsql-php@postgresql.org" Message-ID: <62DC7EB1-B4BB-4289-B880-4C7AD1B1AF02@zonarsystems.com> From: Eric Chamberlain To: "Hajek, Nick" In-Reply-To: Content-Type: multipart/alternative; boundary="Apple-Mail-44--322796677" MIME-Version: 1.0 (Apple Message framework v936) Subject: Re: Stored procedures, PDO, and PHP issue Date: Wed, 19 Aug 2009 13:47:06 -0700 References: X-Mailer: Apple Mail (2.936) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.739 tagged_above=-10 required=5 tests=BAYES_20=-0.74, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200908/10 X-Sequence-Number: 4051 --Apple-Mail-44--322796677 Content-Type: text/plain; charset="US-ASCII"; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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 > --Apple-Mail-44--322796677 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable 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
 

= --Apple-Mail-44--322796677--