DrkFusion
04-03-2002, 08:30 PM
Fatal error: Call to a member function on a non-object in /home/sites/site12/users/forum/web/admin/functions.php on line 211
That error came up whats wrong?
// ########################### find weapons ###########################
$currentweapon2=$DB_site->query_first("SELECT weapons FROM user WHERE userid=$post[userid]");
$currentweapon = $currentweapon2[weapons];
if(!$currentweapon) {
$currentweapon="No Item";
} else {
eval("\$post[hasweapon] .= \"".gettemplate("weapons")."\";");
}
// ########################### find armor ###########################
$currentarmor2=$DB_site->query_first("SELECT armor FROM user WHERE userid=$post[userid]");
$currentarmor = $currentarmor2[armor];
if(!$currentarmor) {
$currentarmor="No Item";
} else {
eval("\$post[hasweapon] .= \"".gettemplate("armors")."\";");
}
// ########################### find accessories ###########################
$currentaccessory2=$DB_site->query_first("SELECT accessories FROM user WHERE userid=$post[userid]");
$currentaccessory = $currentaccessory2[accessories];
if(!$currentaccessory) {
$currentaccessory="No Item";
} else {
eval("\$post[hasweapon] .= \"".gettemplate("accessories")."\";");
}
Some where there is the code.....like 211 is
$currentweapon2=$DB_site->query_first("SELECT weapons
That error came up whats wrong?
// ########################### find weapons ###########################
$currentweapon2=$DB_site->query_first("SELECT weapons FROM user WHERE userid=$post[userid]");
$currentweapon = $currentweapon2[weapons];
if(!$currentweapon) {
$currentweapon="No Item";
} else {
eval("\$post[hasweapon] .= \"".gettemplate("weapons")."\";");
}
// ########################### find armor ###########################
$currentarmor2=$DB_site->query_first("SELECT armor FROM user WHERE userid=$post[userid]");
$currentarmor = $currentarmor2[armor];
if(!$currentarmor) {
$currentarmor="No Item";
} else {
eval("\$post[hasweapon] .= \"".gettemplate("armors")."\";");
}
// ########################### find accessories ###########################
$currentaccessory2=$DB_site->query_first("SELECT accessories FROM user WHERE userid=$post[userid]");
$currentaccessory = $currentaccessory2[accessories];
if(!$currentaccessory) {
$currentaccessory="No Item";
} else {
eval("\$post[hasweapon] .= \"".gettemplate("accessories")."\";");
}
Some where there is the code.....like 211 is
$currentweapon2=$DB_site->query_first("SELECT weapons