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
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: 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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Tue Dec 07 00:03:49 2021 UTC