didou Mon Jan 22 01:12:14 2007 UTC
Modified files:
/phpdoc/en/reference/pdo/functions PDO-prepare.xml
Log:
Fix #37401: Show that we can also lose the : before the parameter name
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/pdo/functions/PDO-prepare.xml?r1=1.14&r2=1.15&diff_format=u
Index: phpdoc/en/reference/pdo/functions/PDO-prepare.xml
diff -u phpdoc/en/reference/pdo/functions/PDO-prepare.xml:1.14
phpdoc/en/reference/pdo/functions/PDO-prepare.xml:1.15
--- phpdoc/en/reference/pdo/functions/PDO-prepare.xml:1.14 Thu Jan 18
15:30:06 2007
+++ phpdoc/en/reference/pdo/functions/PDO-prepare.xml Mon Jan 22 01:12:14 2007
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.14 $ -->
+<!-- $Revision: 1.15 $ -->
<refentry id="function.PDO-prepare">
<refnamediv>
<refname>PDO->prepare()</refname>
@@ -103,7 +103,7 @@
$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();
?>
]]>