Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Release] Total Users and Total Accounts for website

Status
Not open for further replies.
Master Summoner
Joined
Jun 11, 2006
Messages
518
Reaction score
0
PHP:
Total Accounts: <? $db = mssql_connect("localhost", "sa", "password"); 
mssql_select_db("AccountDB",$db); 
$sql = "select strClientID from USERINFOBASE"; 
$result = mssql_query($sql); 
echo mssql_num_rows($result); 
?>

Total Characters: <? $db = mssql_connect("localhost", "sa", "password"); 
mssql_select_db("LunentiaTest",$db); 
$sql = "select strUserID from USERDATA"; 
$result = mssql_query($sql); 
echo mssql_num_rows($result); 
?>
 
Skilled Illusionist
Joined
May 10, 2006
Messages
375
Reaction score
0
edited :
<? $db = mssql_connect("localhost", "sa", "password");
mssql_select_db("AccountDB",$db);
echo "Total Accounts: ";
$sql = "select strClientID from USERINFOBASE";
$result = mssql_query($sql);
echo mssql_num_rows($result);
echo "Total Characters:";
$sql = "select strUserID from USERDATA";
$result = mssql_query($sql);
echo mssql_num_rows($result);
?>
 
Experienced Elementalist
Joined
Feb 24, 2008
Messages
210
Reaction score
0
thanks,
i dont play this but i can use it for my site :)
 
Status
Not open for further replies.
Back
Top