|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-05-21 23:29 UTC] zapzap at zwf dot net
[2000-05-28 06:43 UTC] zapzap at zwf dot net
[2000-07-20 21:20 UTC] mrobinso at cvs dot php dot net
[2000-08-18 13:09 UTC] waldschrott@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 10 15:00:01 2026 UTC |
hi i try this simple code : <?php mysql_connect($host,$user,$password); $result = mysql_db_query("database","select * from table"); while($row = mysql_fetch_array($result)) { echo $row["username"]; echo $row["homedir"]; } mysql_free_result($result); ?> of course i replace $host, $user, $password, database and table by the appropriate value i receive this error : Warning: Supplied argument is not a valid MySQL result resource in /data/Html/Outils/test.php on line 4 Warning: Supplied argument is not a valid MySQL result resource in /data/Html/Outils/test.php on line 8 I run Apache 1.3.12 + php 4.0RC2 well : 1 - i try "grep -i mysql php-4.0RC2/FUNCTION_LIST.txt" and cannot find any trace of the function mysql_db_query Miss or Not ? 2 - i try the same test code on RC1 and everything work fine BUg or missconfiguration ? ZapZap