Fix syntax error in example.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@197492 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Dan Scott 2005-10-03 15:47:33 +00:00
parent 007a35f2f3
commit 50bfb00529

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.3 $ -->
<!-- $Revision: 1.4 $ -->
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc. -->
<refentry id="function.db2-fetch-array">
<refnamediv>
@ -73,9 +73,9 @@
$sql = "SELECT id, name, breed, weight FROM animals ORDER BY breed";
$stmt = db2_prepare($conn, $sql);
$result = db2_execute($stmt, $sql);
$result = db2_execute($stmt);
while ($row = db2_fetch_array($result)) {
while ($row = db2_fetch_array($stmt)) {
printf ("%-5d %-16s %-32s %10s\n",
$row[0], $row[1], $row[2], $row[3]);
}