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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 19:01:33 2024 UTC