git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@309602 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Daniel P. Brown 2011-03-23 15:21:55 +00:00
parent 834e755b8d
commit 82d3853c2c

View file

@ -111,7 +111,7 @@ $sql = 'SELECT name, colour, calories
$sth = $dbh->prepare($sql, array(PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY));
$sth->execute(array(':calories' => 150, ':colour' => 'red'));
$red = $sth->fetchAll();
$sth->execute(array('calories' => 175, 'colour' => 'yellow'));
$sth->execute(array('calories' => 175, ':colour' => 'yellow'));
$yellow = $sth->fetchAll();
?>
]]>