note 89370 deleted from pdostatement.bindparam by danbrown

From: Date: Wed, 04 Mar 2009 22:10:20 +0000
Subject: note 89370 deleted from pdostatement.bindparam by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-151490@lists.php.net to get a copy of this message
Note Submitter: Charlie Smith ---- @chance garcia The point of bindParam is "Unlike PDOStatement::bindValue(), the variable is bound as a reference and will only be evaluated at the time that PDOStatement::execute() is called. " The point of bindParam is to be able to loop over data executing a query without the need to set the bound parameters(values) each time in the loop. You are describing bindValue. The issue is the pass by reference does not work with arrays in bindParam. Or atleast I haven't been able to get it to work and still evaluate only at the time execute is called.

« previous php.notes (#151490) next »