mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
some more corrections
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@128387 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
30acf9cc08
commit
5b5ddfbc63
1 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<refentry id="function.mysqli-fetch-array">
|
||||
<refnamediv>
|
||||
<refname>mysqli_fetch_array</refname>
|
||||
|
@ -50,7 +50,7 @@
|
|||
|
||||
$result = mysqli_query("SELECT id, name FROM mytable");
|
||||
|
||||
while ($row = mysqli_fetch_array($result, MYSQL_NUM)) {
|
||||
while ($row = mysqli_fetch_array($result, MYSQLI_NUM)) {
|
||||
printf ("ID: %s Name: %s", $row[0], $row[1]);
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@
|
|||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>mysqli_fetch_array with MYSQL_ASSOC</title>
|
||||
<title>mysqli_fetch_array with MYSQLI_ASSOC</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -70,7 +70,7 @@
|
|||
|
||||
$result = mysqli_query("SELECT id, name FROM mytable");
|
||||
|
||||
while ($row = mysqli_fetch_array($result, MYSQL_ASSOC)) {
|
||||
while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
|
||||
printf ("ID: %s Name: %s", $row["id"], $row["name"]);
|
||||
}
|
||||
|
||||
|
@ -80,7 +80,7 @@
|
|||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>mysqli_fetch_array with MYSQL_BOTH</title>
|
||||
<title>mysqli_fetch_array with MYSQLI_BOTH</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -90,7 +90,7 @@
|
|||
|
||||
$result = mysqli_query("SELECT id, name FROM mytable");
|
||||
|
||||
while ($row = mysqli_fetch_array($result, MYSQL_BOTH)) {
|
||||
while ($row = mysqli_fetch_array($result, MYSQLI_BOTH)) {
|
||||
printf ("ID: %s Name: %s", $row[0], $row["name"]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue