php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #24650 Error on PHP documentation page
Submitted: 2003-07-14 14:30 UTC Modified: 2003-07-14 14:43 UTC
From: brichards at deltasearchlabs dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: brichards at deltasearchlabs dot com
New email:
PHP Version: OS:

 

 [2003-07-14 14:30 UTC] brichards at deltasearchlabs dot com
Description:
------------
on the web page:   http://us4.php.net/manual/en/ref.mysql.php

in Example one, you use the line:

"foreach ($line as $col_value) {"

The variable "$line" should be "$list"


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-14 14:43 UTC] didou@php.net
the line before is : while($line = mysql_fetch_array($result, MYSQL_ASSOC))

so we loop over $line with a foreach.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 23:01:34 2024 UTC