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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
32 - 3 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 20:01:29 2024 UTC