php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22196 mysql_pconnect
Submitted: 2003-02-12 19:16 UTC Modified: 2003-02-13 07:00 UTC
From: velimira_bg at abv dot bg Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.3.0 OS: Windows XP
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: velimira_bg at abv dot bg
New email:
PHP Version: OS:

 

 [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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-12 19:37 UTC] nicos@php.net
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-13 03:15 UTC] velimira_bg at abv dot bg
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:28 UTC] georg@php.net
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!
 [2003-02-13 07:00 UTC] velimira_bg at abv dot bg
You wanted more information, I gave it to you. If you think this problem is only mine , you are wrong.

Regards.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Sep 29 01:01:26 2024 UTC