second missing colon (re #54359)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@309604 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Peter Cowburn 2011-03-23 15:26:04 +00:00
parent 82d3853c2c
commit 0d94f00367

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();
?>
]]>