mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
updated example to use while
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@111626 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
9c4ae88f49
commit
27b807d1f5
1 changed files with 4 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.pg-fetch-row">
|
||||
<refnamediv>
|
||||
|
@ -48,13 +48,9 @@ if (!$result) {
|
|||
exit;
|
||||
}
|
||||
|
||||
$num = pg_num_rows($result);
|
||||
|
||||
for ($i=0; $i < $num; $i++) {
|
||||
$r = pg_fetch_row($result, $i);
|
||||
|
||||
for ($j=0; $j < count($r); $j++) {
|
||||
echo "$r[$j] ";
|
||||
while ($row = pg_fetch_row($result, $i)) {
|
||||
for ($j=0; $j < count($row); $j++) {
|
||||
echo "$row[$j] ";
|
||||
}
|
||||
|
||||
echo "<BR>";
|
||||
|
|
Loading…
Reference in a new issue