Skip to content

Commit

Permalink
Fix missing closing bracket (#782)
Browse files Browse the repository at this point in the history
In constants.xml used in https://www.php.net/manual/fr/ref.pdo-mysql.php, in the 'Exemple #1 Activation du mode non mis en cache de MySQL'section.A closing bracket is missing for the foreach loop, it may cause missing understanding for beginner in PHP.
  • Loading branch information
Guilhemvnt authored Feb 1, 2024
1 parent 6a1ffa8 commit 5fe181e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions reference/pdo_mysql/constants.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ $pdo->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, false);
$unbufferedResult = $pdo->query("SELECT Name FROM City");
foreach ($unbufferedResult as $row) {
echo $row['Name'] . PHP_EOL;
}
?>
]]>
</programlisting>
Expand Down

0 comments on commit 5fe181e

Please sign in to comment.