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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 23:01:33 2025 UTC