Try adding
function getQuery() {
return $this->query;
}
to the first class, then in the second class, replace $query with
$this->getQuery()
Like I have below.
On Wed, 29 Sep 2004 17:08:49 +0200, kioto
<[EMAIL PROTECTED]> wrote:
> //db_class.php
>
> error_reporting(E_ALL);
>
> class Db_Conne
error_reporting(E_ALL);
class Db_Connect {
var $host;
var $user;
var $pasw;
var $MYSQL_ERRNO;
var $MYSQL_ERROR;
var $query;
function make_connect($host, $user, $pasw) {
$this->host = $host;
$this->user = $user;
$this->pasw = $pasw;
$link_id = mysql_conn
2 matches
Mail list logo