note 96083 deleted from pdo.prepared-statements by danbrown

From: Date: Mon, 08 Feb 2010 03:24:01 +0000
Subject: note 96083 deleted from pdo.prepared-statements by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-165738@lists.php.net to get a copy of this message
Note Submitter: danteshamest at gmail dot com ---- Example #6 is a big vague on which lines are misusing the placeholder. This is correct usage: <?php $stmt = $dbh->prepare("SELECT * FROM REGISTRY where name LIKE '%?%'"); $stmt->execute(array($_GET['name'])); ?> This is NOT correct: <?php $stmt = $dbh->prepare("SELECT * FROM REGISTRY where name LIKE '%?%'"); $stmt->execute(array($_GET['name'])); ?>

« previous php.notes (#165738) next »