note 85315 added to pdostatement.bindvalue

From: Date: Mon, 25 Aug 2008 23:31:52 +0000
Subject: note 85315 added to pdostatement.bindvalue
Groups: php.notes 
Request: Send a blank email to php-notes+get-143815@lists.php.net to get a copy of this message
PDO lacks methods to check if values can be bound to a parameter, e.g., if ($statement->hasParameter(':param')) { $statement->bindValue(':param', $value); } ATM you *have to know* which parameters exist in the SQL-statement. Otherwise you get an error. You cannot test for them. ---- Server IP: 212.124.37.9 Probable Submitter: 91.6.56.55 ---- Manual Page -- http://www.php.net/manual/en/pdostatement.bindvalue.php Edit -- https://master.php.net/note/edit/85315 Del: integrated -- https://master.php.net/note/delete/85315/integrated Del: useless -- https://master.php.net/note/delete/85315/useless Del: bad code -- https://master.php.net/note/delete/85315/bad+code Del: spam -- https://master.php.net/note/delete/85315/spam Del: non-english -- https://master.php.net/note/delete/85315/non-english Del: in docs -- https://master.php.net/note/delete/85315/in+docs Del: other reasons-- https://master.php.net/note/delete/85315 Reject -- https://master.php.net/note/reject/85315 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#143815) next »