mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
- Fix error in example as suggested in doc comment.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@186052 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
aff44cf642
commit
f962ada7a0
1 changed files with 2 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.17 $ -->
|
||||
<!-- $Revision: 1.18 $ -->
|
||||
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.pg-fetch-object">
|
||||
<refnamediv>
|
||||
|
@ -141,13 +141,11 @@ if (!$db_conn) {
|
|||
|
||||
$qu = pg_query($db_conn, "SELECT * FROM books ORDER BY author");
|
||||
|
||||
$row = 0; // postgres needs a row counter
|
||||
|
||||
while ($data = pg_fetch_object($qu, $row)) {
|
||||
while ($data = pg_fetch_object($qu)) {
|
||||
echo $data->author . " (";
|
||||
echo $data->year . "): ";
|
||||
echo $data->title . "<br />";
|
||||
$row++;
|
||||
}
|
||||
|
||||
pg_free_result($qu);
|
||||
|
|
Loading…
Reference in a new issue