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 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 13:01:36 2025 UTC