|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-07-25 00:57 UTC] zak@php.net
[2000-07-25 23:15 UTC] zak@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 08:00:01 2025 UTC |
Given a database consisting of, say, two tables Images and Portfolios who share the attribute 'Name' the following code will fail while fetching the second row of the result saying Warning: Images not found in MySQL result index 7 in /home/httpd/html/bildbank/http/search/result.phtml on line 309 Wierd this is that it works on the first row of the result.. This problem did not occur in PHP3 $SQL = "SELECT * FROM Images, Portfolios WHERE Images.Idx = Portfolios.ImageID"; $res = mysql("imagedb", $SQL); for ($i = 0; $i < mysql_numrows($res); $i++) { $imgName = mysql_result($res, $i, "Images.Name"); echo "$imgName<br>"; }