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

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

pgsql-php by date

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

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