Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 7E29763286E for ; Wed, 19 Aug 2009 17:42:54 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 22202-01 for ; Wed, 19 Aug 2009 20:42:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mamv02.vishay.com (mamv02.Vishay.com [57.68.16.124]) by mail.postgresql.org (Postfix) with ESMTP id 5614E63266B for ; Wed, 19 Aug 2009 17:42:43 -0300 (ADT) Received: from VMMV12.VISHAY.COM (localhost [127.0.0.1]) by mamv02.vishay.com (Spam & Virus Firewall) with ESMTP id 0F32A5377B5 for ; Wed, 19 Aug 2009 16:42:37 -0400 (EDT) Received: from VMMV12.VISHAY.COM (vmmv12.Vishay.com [57.68.16.12]) by mamv02.vishay.com with ESMTP id dBzx1tnqhTCswrtU for ; Wed, 19 Aug 2009 16:42:37 -0400 (EDT) Received: from WSMV54.corp.vishayint.com (wsmv54.corp.vishayint.com [172.26.20.54]) by Mail1.Vishay.com (PMDF V6.3-x3 #31205) with ESMTP id <01NCPP3USQHS8WWBGV@Mail1.Vishay.com> for pgsql-php@postgresql.org; Wed, 19 Aug 2009 16:42:22 -0400 Received: from EVSCO01.na.vishayint.com ([172.25.20.16]) by WSMV54.corp.vishayint.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 19 Aug 2009 16:42:22 -0400 Date: Wed, 19 Aug 2009 15:42:20 -0500 From: "Hajek, Nick" Subject: Re: Stored procedures, PDO, and PHP issue In-reply-to: To: Eric Chamberlain , pgsql-php@postgresql.org Message-id: MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft Exchange V6.5 Content-type: multipart/alternative; boundary="----_=_NextPart_001_01CA210D.8CBDDC5B" Thread-Topic: [PHP] Stored procedures, PDO, and PHP issue Thread-Index: AcohC1gva6kLEIlpTJuTtpR0tq7D+wAAeZmQ Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 19 Aug 2009 20:42:22.0759 (UTC) FILETIME=[8D9C1B70:01CA210D] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.002 tagged_above=-10 required=5 tests=BAYES_50=0.001, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200908/17 X-Sequence-Number: 4058 This is a multi-part message in MIME format. ------_=_NextPart_001_01CA210D.8CBDDC5B Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable >>> $stmt->bindParam(1, $userId, $hashPass, PDO::PARAM_INT);=20 =20 =20 You should be calling bindParam once for each parameter=20 $stmt->bindParam(1, $userId, PDO::PARAM_INT); =20 $stmt->bindParam(2, $hashPass, PDO::PARAM_STR); =20 =20 =20 Nick =20 ------_=_NextPart_001_01CA210D.8CBDDC5B Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable
>>> $stmt->bindParam(1, = $userId,=20 $hashPass, PDO::PARAM_INT); 
 
 
You=20 should be calling bindParam once for each parameter
$stmt->bindParam(1, $userId, PDO::PARAM_INT);      =
$stmt->bindParam(2, $hashPass,=20 PDO::PARAM_STR);     =20
 
 
Nick
 
------_=_NextPart_001_01CA210D.8CBDDC5B--