私は機能を持っています:
function get_current_users($current_users)
{
global $db;
$current_users = $db->EscapeString($current_users);
$total_current_users = $db->QueryFetchArray("SELECT COUNT(*) FROM users AS total_current_users");
return $total_current_users['total_current_users'];
}
しかし、結果を出力する方法がわかりません。次のオプションを試しましたが、何も表示されません。
`<?$total_current_users?>
<?['$total_current_users']?>
<?=data['$total_current_users']?>`