nlopess         Thu Jan 18 15:30:06 2007 UTC

  Modified files:              
    /phpdoc/en/reference/pdo/functions  PDO-prepare.xml 
  Log:
  fix bug #40161: error in the example 1
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/pdo/functions/PDO-prepare.xml?r1=1.13&r2=1.14&diff_format=u
Index: phpdoc/en/reference/pdo/functions/PDO-prepare.xml
diff -u phpdoc/en/reference/pdo/functions/PDO-prepare.xml:1.13 
phpdoc/en/reference/pdo/functions/PDO-prepare.xml:1.14
--- phpdoc/en/reference/pdo/functions/PDO-prepare.xml:1.13      Sun Jan  7 
20:57:47 2007
+++ phpdoc/en/reference/pdo/functions/PDO-prepare.xml   Thu Jan 18 15:30:06 2007
@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.13 $ -->
+<!-- $Revision: 1.14 $ -->
 <refentry id="function.PDO-prepare">
  <refnamediv>
   <refname>PDO->prepare()</refname>
@@ -100,7 +100,7 @@
 $sql = 'SELECT name, colour, calories
     FROM fruit
     WHERE calories < :calories AND colour = :colour';
-$sth = $dbh->prepare($sql, array(PDO::ATTR_CURSOR, PDO::CURSOR_FWDONLY));
+$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'));

Reply via email to