I just don’t get it where is the problem but here’s the error:
Fatal error: Can’t use function return value in write context in
D:\wamp\www\system\classes\database.class.php on line 70
Code:
public function query($sql) {
if(!is_string() or empty(trim($sql))) {
throw new Exception('No sql statement was entered.');
}
$query = @mysql_query($sql);
if(!$query) {
throw new Exception('Query could not be executed because of an error: [#' . mysql_errno() . '] - ' . mysql_error());
}
return $query;
}
Line 70:
if(!is_string() or empty(trim($sql))) {
It’s right there in the manual for the empty function: http://php.net/empty
To fix it you need to do something like: