php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26422 No database selected from time to time - URGENT MATTER
Submitted: 2003-11-26 08:21 UTC Modified: 2003-11-27 00:17 UTC
From: gibex at remar dot pascani dot rdsnet dot ro Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.3.4 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gibex at remar dot pascani dot rdsnet dot ro
New email:
PHP Version: OS:

 

 [2003-11-26 08:21 UTC] gibex at remar dot pascani dot rdsnet dot ro
Description:
------------
problem persist in php 4.3.4

MySQL version 4.0.15-standard 
Apache version 1.3.29 (Unix) 
Kernel version 2.4.20-18.9 

Can you provide me a solution of this. I can't patch the PHP from server. 
thanks


Reproduce code:
---------------
$conn = mysql_connect($dbhost, $dbuser, $dbpasswd) or
die(mysql_error()); 
mysql_select_db($dbname, $conn) or die(mysql_error());


Actual result:
--------------
No Database Selected

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-26 08:24 UTC] gibex at remar dot pascani dot rdsnet dot ro
I tried some workaround code but no success. Sometimes it's working nice, but sometimes it;s going down.

Can Someone help me with that?
 [2003-11-27 00:17 UTC] sniper@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


Works fine for me.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 13:01:30 2024 UTC