note 88002 added to pdostatement.bindparam

From: Date: Mon, 05 Jan 2009 19:33:52 +0000
Subject: note 88002 added to pdostatement.bindparam
Groups: php.notes 
Request: Send a blank email to php-notes+get-148860@lists.php.net to get a copy of this message
@chance garcia The values are supposed to be passed by reference. Which means you bind them once and never need bind them again. Instead they are to be evaluated at the time of execution. In your example the PDO-intended way is to use bindValue. ---- Server IP: 209.41.74.194 Probable Submitter: 63.73.199.69 ---- Manual Page -- http://www.php.net/manual/en/pdostatement.bindparam.php Edit -- https://master.php.net/note/edit/88002 Del: integrated -- https://master.php.net/note/delete/88002/integrated Del: useless -- https://master.php.net/note/delete/88002/useless Del: bad code -- https://master.php.net/note/delete/88002/bad+code Del: spam -- https://master.php.net/note/delete/88002/spam Del: non-english -- https://master.php.net/note/delete/88002/non-english Del: in docs -- https://master.php.net/note/delete/88002/in+docs Del: other reasons-- https://master.php.net/note/delete/88002 Reject -- https://master.php.net/note/reject/88002 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#148860) next »