php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2951 returns document contains no data
Submitted: 1999-12-10 08:00 UTC Modified: 2000-07-22 19:24 UTC
From: wuepping at wmo dot de Assigned:
Status: Closed Package: MySQL related
PHP Version: 3.0.12 OS: Suse Linux 6.2 0-3
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wuepping at wmo dot de
New email:
PHP Version: OS:

 

 [1999-12-10 08:00 UTC] wuepping at wmo dot de
First I compiled PHP with the Mysql and Apache Module, and it worked.
then I have uninstalled it and recompiled it again and configured it like this:
./configure --with-mysql --with-db2 --with-apache=../apache_1.3.9 --enable-track-vars

But now I can`t connect to a mysql Database. The connection to the mysql Server seems to work.
my php command line looks like this:
<?php mysql_connect ("localhost:3306","root","mypassword");
$result = mysql_db_query ("ubr", "select * from persdat");
while($row = mysql_fetch_array($result))
	{
		echo $row["user-id"];
		echo $row["fullname"];
	}
mysql_free_result($result);
?>
(modified query from the php manual).
This Query returns "The Document contains no Data" at my Browser.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-22 19:24 UTC] mrobinso at cvs dot php dot net
Try placing ' or DIE (mysql_error())' after the
calls to connect and query to determine what the
problem is.

Please reopen if problem persists. Try upgrading to
the latest php.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 10:01:32 2024 UTC