PHP expert |
|
Citaat: Fatal error: Call to a member function query() on a non-object in C:Program FilesxamppwwwLocalhostincludesfuncties.php on line 23
dit is de error die ik krijg, dit is lijn23
$gUsers = $mysql->query("SELECT * FROM users WHERE username='".$user."'", "SELECT Query3 Game/tavern_view");
$gUsers = $mysql->query("SELECT * FROM users WHERE username='".$user."'", "SELECT Query3 Game/tavern_view");
op index.php doe ik het als volgt:
include("includes/config.php");
include("includes/mysql_class.php");
include("includes/class.TemplatePower.inc.php");
include("includes/ubb_class.php");
//mysqlclass aanroepen
$ubb = new ubb;
$mysql = new mysql($cfg['mysql']['host'], $cfg['mysql']['user'], $cfg['mysql']['pass'], $cfg['mysql']['db']);
include("includes/session.php");
include("includes/functies.php");
include("includes/config.php"); include("includes/mysql_class.php"); include("includes/class.TemplatePower.inc.php"); include("includes/ubb_class.php"); //mysqlclass aanroepen $ubb = new ubb; $mysql = new mysql($cfg['mysql']['host'], $cfg['mysql']['user'], $cfg['mysql']['pass'], $cfg['mysql']['db']); include("includes/session.php"); include("includes/functies.php");
alle andere $mysql->query() 's lukken, wrm die niet??
|