A
Anonymous
Guest
ok,
this is the error message i got:
"Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'{'' or `'$'' in .../htdocs/database.inc on line 11"
"Fatal error: Cannot instantiate non-existent class: database in .../htdocs/parentclient/parentlist.php on line 19"
i didn't get this in localhost, it's so weird...and frustrating.
what is in database.inc line 11?
what is in parentlist.php line 19?
what could be the reason that triggered this error message?
this is the error message i got:
"Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'{'' or `'$'' in .../htdocs/database.inc on line 11"
"Fatal error: Cannot instantiate non-existent class: database in .../htdocs/parentclient/parentlist.php on line 19"
i didn't get this in localhost, it's so weird...and frustrating.
what is in database.inc line 11?
Code:
<?php
class Database
{
var $connection = null;
var $result = null;
var $row = null;
function Database()
{
/*line11*/$this->connection = mysql_connect("localhost","user")
or die("Could not connect: " .mysql_error());
mysql_select_db("db")
or die("Could not select database: " .mysql_error());
}
......
what is in parentlist.php line 19?
Code:
....
<?php
include("../database.inc");
/*line19*/$database = new Database();
.....
what could be the reason that triggered this error message?