php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23064 don't connect to mysql
Submitted: 2003-04-05 15:21 UTC Modified: 2003-04-06 06:52 UTC
From: jelzio at hotmail dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.3.0 OS: linux
Private report: No CVE-ID: None
 [2003-04-05 15:21 UTC] jelzio at hotmail dot com
******this is error********
Warning: Wrong parameter count for mysql_connect() in .../class/adodb/drivers/adodb-mysql.inc.php on line 190 

*****this is the script that I use ******
include 'class/adodb.php'
$db = ADONewConnection('mysql'); 
/*here*/$db->Connect($db_host, $db_user, $db_password, $db_name)

Then I opened to the file adodb-mysql.inc.php to review it and if you see the error happens in 190 line of adodb v3.00 and 211 line in adodb v3.31, as they are equal in both cases only you I show it once.

function _connect($argHostname, $argUsername, $argPassword, $argDatabasename) 
{ 
global $ADODB_PHPVER; 
if ($ADODB_PHPVER >= 0x4300) 
$this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword, 
/*in this line  it happens the error */$this->forceNewConnect,$this->clientFlags); 


I have PHP 4.3.0 and MySQL 3.23.37 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-06 06:52 UTC] sniper@php.net
This is not the correct place to report problems in some 3rd party application written with PHP..

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