PHP 4.0 Bug #2966: mysql_result , warning message when "table.field" form entered for field[mixed]

From: Date: Mon, 13 Dec 1999 18:01:31 +0000
Subject: PHP 4.0 Bug #2966: mysql_result , warning message when "table.field" form entered for field[mixed]
Groups: php.dev 
Request: Send a blank email to php-dev+get-13617@lists.php.net to get a copy of this message
From: ralph@snarff.net Operating system: RH Linux 6.0 w/ Aapche 1.3.9 PHP version: 4.0 Beta 3 PHP Bug Type: MySQL related Bug description: mysql_result , warning message when "table.field" form entered for field[mixed] <?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>"; } ?>

« previous php.dev (#13617) next »