php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2966 mysql_result , warning message when "table.field" form entered for field[mixed]
Submitted: 1999-12-13 13:01 UTC Modified: 2000-07-04 10:44 UTC
From: ralph at snarff dot net Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0 Beta 3 OS: RH Linux 6.0 w/ Aapche 1.3.9
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: ralph at snarff dot net
New email:
PHP Version: OS:

 

 [1999-12-13 13:01 UTC] ralph at snarff dot net
<?php
     #this loop actually return the first result in the set but 
     # subsquent results will recieve a warning.

      mysql_connect("", "web", "web");
      $result = mysql("careers", "select * from table;");
      $num_rows = mysql_numrows($result);

      for ($i = 1; $i < $num_rows; $i++) {
        # new line w/o table name in field
        echo $i . mysql_result($result, $i, "company") . "<bR>";
        # old line w table name in field
        # echo $i . mysql_result($result, $i, "table.company") . "<bR>";
        }

?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-10 18:53 UTC] zeev at cvs dot php dot net
Please try PHP 4.0.0.  If the problem persists, please tell us what warning message you're getting.
 [2000-07-04 10:44 UTC] stas at cvs dot php dot net
No user feedback
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 13:00:01 2026 UTC