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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
44 - 25 = ?
Subscribe to this entry?

 
 [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: Fri May 17 11:01:34 2024 UTC