PHP Code:
//Drakks Warning Hack
$warnfield="field10" //make x the field for ur warning level
echo "warnfield=$warnfield <br>";
echo "bbuserinfo=$bbuserinfo<br>";
$warnlevel = $DB_site->query_first("SELECT $warnfield FROM userfield WHERE userid='$new_var_323'");
$warnlevel=$warnlevel[$warnfield];
in that case this is the line:
PHP Code:
echo "warnfield=$warnfield <br>";
if u get rid of that and the bit after it and this is in there this is the line:
PHP Code:
$new_var_323= $bbuserinfo[userid];
but.. if that aint there this is the line:
PHP Code:
$warnlevel = $DB_site->query_first("SELECT $warnfield FROM userfield WHERE $bbuserinfo[userid]");
and so on