this is part of scripts where it checks is player online:
Code:
$result1 = mssql_query("SELECT login_flag,user_id FROM account.dbo.USER_PROFILE WHERE user_no = '".$_POST['user_no']."'",$ms_con);
$row1 = mssql_fetch_row($result1);
if($row1[0] == '1100') {
echo "<br>This account can not currently add coins, since it is online.<br><a href='javascript:history.back()'>Go Back</a>";