PHP 4.0 Bug #5367: msql_query() and msql() not working properly
| From: | wolfgangebneter at os-net dot php dot net | Date: | Tue, 04 Jul 2000 19:56:49 +0000 |
| Subject: | PHP 4.0 Bug #5367: msql_query() and msql() not working properly | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-23367@lists.php.net to get a copy of this message | ||
From: wolfgangebneter@os-net
Operating system: linux 2.2.14/SuSE 6.4
PHP version: 4.0.0
PHP Bug Type: mSQL related
Bug description: msql_query() and msql() not working properly
$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 )