ID: 22196 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Bogus Bug Type: MySQL related Operating System: Windows XP PHP Version: 4.3.0 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. I'm pretty sure, that this didn't work in previous versions! Previous Comments: ------------------------------------------------------------------------ [2003-02-13 03:15:26] [EMAIL PROTECTED] Well, I use mysql-3.23.38. For example, I have the following scripts(the two files are consequent): one.php <?php if (!($link = mysql_pconnect ($DB_SERVER,$DB_LOGIN, $DB_PASSWORD))) { DisplayErrMsg(); return 0 ; } $result = mysql_db_query("$DB", "select * from table"); //here the query works ?> two.php <?php if (!($result = mysql_db_query("$DB", "select * from table"))) echo mysql_error(); //here it ouputs an error: //Access denied for user: '@localhost' to database ?> The same code works on other machine with an older version of PHP ------------------------------------------------------------------------ [2003-02-13 03:02:34] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2003-02-12 19:37:40] [EMAIL PROTECTED] We really need more informations. Your script so we can try to reproduce. We also need your mysql version... Be more descriptive if you can please. ------------------------------------------------------------------------ [2003-02-12 19:16:08] [EMAIL PROTECTED] I have problems with mysql_pconnect. When I use it once, on the next page the link is gone and I should connect again to the DB in order to make queries. I did not have this problem with any of the oldest versions. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22196&edit=1