|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-05-27 16:58 UTC] joey at cvs dot php dot net
[2000-05-30 16:56 UTC] joey at cvs dot php dot net
[2002-02-08 16:55 UTC] chang at digitalhighway dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 13:00:02 2025 UTC |
My config: Apache 1.3.12 PHP4 RC1 Solaris 2.7 MySQL 3.22.14-gamma The following code produces this warning: "Warning: Supplied argument is not a valid MySQL result resource in /home/mdg1/public_html/newlook/bogus.php on line 6" When using an older version of Apache/PHP3, the script works just fine... so I've ruled out any MySQL permission problems or other such things. Interestingly enough, the MySQL log shows that the data *WAS* fetched from the dB, but for some reason you can't get access to the result in PHP... The code in question: <?php $dbh = mysql_connect("host","username","pass"); mysql_select_db("wwwphp"); $sectq = mysql_query("select section,tablename from sections order by disporder",$dbh); while ( $a = mysql_fetch_array($sectq) ) { print ($a["section"]."<BR>\n"); } ?>