|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-02-12 19:16 UTC] velimira_bg at abv dot bg
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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Jun 21 23:00:01 2026 UTC |
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