php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6258 mysql function returns 'Resource id #'
Submitted: 2000-08-20 04:12 UTC Modified: 2000-08-20 04:25 UTC
From: mail at alsigma dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0.1pl2 OS: Redhat 6.2 Linux 2.2.16
Private report: No CVE-ID: None
 [2000-08-20 04:12 UTC] mail at alsigma dot com
Sorry, I had to submit this bug a second time because the e-mail field under http://bugs.php.net is to short and cut my address in the middle :( ...

When trying to connect to a db with php4, the result is 'Resource id #1' (and #2 etc. on subsequent calls) instead of an integer.

The call was:
echo mysql_connect("localhost",$wwwuser,$wwwpass)
Changing any fields dos not help at all (I think I tried every possible variant during the last 12 hours). mysql_pconnect produces the same error, btw.

*The problem is eliminated by switching back to php3!*

I installed the latest mysql from source and from rpm, it did not help. However, I saw similar problems when searching dejanews.com, but related to other mysql calls. Obviously, other people are at least able to connect to a database before the problem arises.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-20 04:25 UTC] sniper@php.net
See bug #6257

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 17:00:01 2026 UTC