yeah, i had a feeling that was an answer
Updated Script
PHP Code:
class Blizz { var $blizz;
var $resource = mysql_connect();
//set the function
$this->connection = $resource;
($resource = mysql_connect());
function query($query)
{
$resource = mysql_query($query, $this->connection);
if (!$resource)
{
$this->debug_query($query);
}
return $resource;
}
}
//Connect
$db = new Blizz($dbhost, $dbuser, $dbpass, $dbname);
Quote:
Originally Posted by PHP 5.0.4
Parse error: parse error, expecting `','' or `';'' in C:\apachefriends\xampp\htdocs\php_testing\blizz\co nnect.php on line 28
|
Line 28:
Quote:
Originally Posted by Notepad ++
var $resource = mysql_connect();
|