Well that function isn't even in your class, you're defining a class with no methods in it. I don't know if the below will work as I haven't tested it....nor am I an OOP guru, as I am still learning myself.
PHP Code:
var $resource =mysql_connect();
class Blizz {
//set the function
function query($query)
{
$this->connection = $resource;
$this->resource = mysql_query($query, $this->connection);
if (!$this->resource)
{
$this->debug_query($query);
}
return $this->resource;
}
$db = new Blizz;
$query = $db->query("QUERY");
And also what do you mean by a vb free site?