Yok hocam yanlış anlattım sanırım problemimi. Burada yapmak istediğim şu aslında $num_rows sql sorgusundan strAccountID satırını çekip $num_rows 2 deki SQL sorgusunun içerisine yollamak ona göre online humana sayı olarak yazdırmak.
Anladım hocam umarım bu işinizi görür function onlinehuman()
{
$db = $this->database[GDB];
$db2 = $this->database[ADB];
$num_rows = $db->doQuery('SELECT strAccountID FROM ACCOUNT_CHAR WHERE bNation=1');
$onlinehuman = 0;
while ($row = $db->doRead()) {
$characters = $row['strAccountID'];
$num_rows2 = $db2->doQuery('SELECT COUNT(*) as pCount FROM CURRENTUSER WHERE strAccountID=?', $characters);
if ($num_rows2 == 1) {
$row2 = $db2->doRead();
$onlinehuman += $row2['pCount'];
}
}
return $onlinehuman;
}