php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4535 mysql_db_query Bug or Not ?
Submitted: 2000-05-21 23:11 UTC Modified: 2000-08-18 13:09 UTC
From: zapzap at zwf dot net Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0 Release Candidate 2 OS: Linux RH 6.1
Private report: No CVE-ID: None
 [2000-05-21 23:11 UTC] zapzap at zwf dot net
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-21 23:29 UTC] zapzap at zwf dot net
compil option :

./configure --with-mysql --with-apache=../apache_1.3.12 
--enable-track-vars 
--with-config-filepath=/etc/php --with-ftp

zapzap

 [2000-05-28 06:43 UTC] zapzap at zwf dot net
hi,

just some news about this problem.

the problem still exist in php 4.0.0
apache 1.3.12

zapzap
 [2000-07-20 21:20 UTC] mrobinso at cvs dot php dot net
What version of mysql are you using, and how was it
installed (source, rpm...). Can you upgrade to
php4.0.1pl2 and see if the problem persists?


 [2000-08-18 13:09 UTC] waldschrott@php.net
Closed due to missing user feedback.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 14:00:02 2026 UTC