bugs
of
type:
Last
Comment
By:
Search for:
in the bug database
bug number:
Statistics
Feature/Change requests must be explicitly selected to be shown
Bug id #9049
Status:
Open
User Modify Dev
Modify
From:
administrator@rtl.lu
Date:
2001-02-01 09:59:45
Type:
MySQL related
OS:
Linux 2.2.x
PHP Version:
4.0.4pl1
Assigned To:
Short Desc.:
mysqlconnect works, but mysql_query says invalid resource - with
4.0.3pl1 okay
[2001-02-01 09:59:45] administrator@rtl.lu
I have a script which is connecting to mysql using
$authdb=mysql_connect ......
mysql_error does not report an error, neither using
the select_db function.
Later in the same script, I use a mysql_query, which
is reporting invalid mysql_resource (where i do an
echo of the $authdb, which reports a correct handle).
If I move the mysql_connect & mysql_select_db jhust in
the lines before the mysql_query, it is working fine
also mysql_close($authdb) does not report an error
anymore.
This only occurs under 4.0.4pl1, where under 4.0.3pl1
the same script is working fine, without any problems.
I use exactly the same configure line as 4.0.3pl1 (
built-in mysql support).
Now I downgraded again, scripts are running okay now.
I tried also with/without optimizer on both versions,
same results.
---------------------------------------------
Tom Weber
Responsable Technique Internet
Internet Technical Manager
RTL Radio & Télé Lëtzebuerg / RTL Group
Mail : administrator@rtl.lu
URL :
http://www.rtl.lu