Hello Maxus
i tryed your solution without success
here is what i have from line 1 to 54 in /includes/classes/db/mysql/query_factory.php :
Code:
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers |
// | |
// | http://www.zen-cart.com/index.php |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | [email protected] so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// $Id: query_factory.php 1279 2005-05-01 21:01:37Z drbyte $
//
class queryFactory {
function queryFactory() {
$this->count_queries = 0;
$this->total_query_time = 0;
}
function connect($zf_host, $zf_user, $zf_password, $zf_database, $zf_pconnect = 'false', $zp_real = false) {
//@TODO error class required to virtualise & centralise all error reporting/logging/debugging
$this->database = $zf_database;
// pconnect disabled
if (!$zf_pconnect == 'false') {
$this->link = @mysql_connect($zf_host, $zf_user, $zf_password);
} else {
$this->link = @mysql_connect($zf_host, $zf_user, $zf_password);
}
if ($this->link) {
if (@mysql_select_db($zf_database, $this->link)) {
$this->db_connected = true;
return true;
} else {
$this->set_error(mysql_errno(),mysql_error(), $zp_real);
return false;
}
} else {
$this->set_error(mysql_errno(),mysql_error(), $zp_real);
return false;
}
}
Any Idea ?
Thanks
Michael
Bookmarks