|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11370 Warning: Supplied argument is not a valid MySQL result resource in...line 16
Submitted: 2001-06-08 16:38 UTC Modified: 2001-06-09 01:40 UTC
From: a dot naef at condor-communications dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.0.5 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: a dot naef at condor-communications dot com
New email:
PHP Version: OS:


 [2001-06-08 16:38 UTC] a dot naef at condor-communications dot com

$host = "localhost";
$user = "";
$pass = "";
$db = "andre";

$verbindung = mysql_connect($host, $user, $pass);

$sql = "SELECT name FROM test WHERE id='".$id."'";

$result = mysql_db_query($db,$sql);

while($row = mysql_fetch_array($result))  {
	echo htmlentities($row["name"]);
mysql_close ($verbindung);



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-09 01:40 UTC]
works for me just fine. Check your permissions and also
try adding 'echo mysql_error();' lines after the mysql_db_query() and you'll get more info what goes wrong
there. Most likely not enough permissions or the db name is wrong or..Anyway, not a bug in PHP.


PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jul 13 05:01:28 2024 UTC