php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5367 msql_query() and msql() not working properly
Submitted: 2000-07-04 21:56 UTC Modified: 2000-07-22 19:49 UTC
From: wolfgangebneter at os-net Assigned:
Status: Closed Package: mSQL related
PHP Version: 4.0.0 OS: linux 2.2.14/SuSE 6.4
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: wolfgangebneter at os-net
New email:
PHP Version: OS:

 

 [2000-07-04 21:56 UTC] wolfgangebneter at os-net
$database = "isdn";

$con = msql_connect();

if ( !$con )
{
	echo "Keine verbindung zum msql-Server<br>";
	echo msql_error();
}
else
{
	$res = msql_select_db( $database, $con );
	if ( !$res )
	{
		echo "Konnte Datenbank nicht ausw?hlen.<br>";
		echo msql_error();
	}
	else	
	{
		echo $res;
		$query =  "SELECT * from user_ref";
		$result = msql( $database, $query, $res);

/* Putting $res as the last parameter returns this ->Warning: Supplied argument is not a valid mSQL-Link resource
	
Without the $res it gives the expected result. The same applies to msql_query()	
*/
	}
		
}		

I have php4.0.0 running as an apache module ( apache 1.3.9 built May 23 2000 )

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-22 19:49 UTC] sterling at cvs dot php dot net
Fixed in CVS, thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 02:01:28 2024 UTC