Witam,
problem:
Fatal error: Call to a member function set_connection() on a non-object in C:\xxx\xxx\db.php on line 65
klasa:
class db{
function set_connection($host, $user, $pass)
{
$this -> host = $host;
$this -> user = $user;
$this -> pass = $pass;
}
function db_connect()
{
$result = mysql_connect($this -> host, $this -> user, $this -> pass);
if(!$result)
{
echo 'Cannot establish database connection with: '.$this -> host;
return false;
}
return $result;
}
}
użycie:
$host = 'localhost';
$user = 'root';
$pass = '';
$db -> set_connection($host, $user, $pass); //to jest właśnie 65 wiersz
$db -> db_connect();
Co tu robię źle? :?

Dzięki za pomoc.