Re: Stored procedures, PDO, and PHP issue

From: "Hajek, Nick" <Nick(dot)Hajek(at)Vishay(dot)com>
To: Eric Chamberlain <Eric(dot)Chamberlain(at)zonarsystems(dot)com>, pgsql-php(at)postgresql(dot)org
Subject: Re: Stored procedures, PDO, and PHP issue
Date: 2009-08-19 20:42:20
Message-ID: AFD16ED07E37C64D963DA24840AA31F2068F09E1@EVSCO01.na.vishayint.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

>>> $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

Responses

Browse pgsql-php by date

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