- Mar 12, 2005
- 3,249
- 111
- 300
Dont know if this is any help to people but I was bored last night and was writing so little PHP scripts.
Here is an example to show Top 10 Levels on your server.
Working on Reviving Leo's Server Monitor, Also creating a program to run server-side and save/send info about the server to my ftp and display it on the monitor.
Here is an example to show Top 10 Levels on your server.
PHP:
<?php
$hostname = "<Host IP>";
$username = "<DB USERNAME>";
$password = "<DB PASSWORD>";
$dbName = "<DB NAME>";
MSSQL_CONNECT($hostname,$username,$password) or DIE("DATABASE FAILED TO RESPOND.");
mssql_select_db($dbName) or DIE("Table unavailable");
$query = "SELECT TOP 10 FLD_CHARNAME FROM TBL_CHARINFO WHERE FLD_LEVEL>0 AND FLD_LEVEL<9999 ORDER BY FLD_LEVEL DESC";
$result = mssql_query( $query );
while($line = mssql_fetch_row($result)){
print "$line[0]<br>";
}?>
Working on Reviving Leo's Server Monitor, Also creating a program to run server-side and save/send info about the server to my ftp and display it on the monitor.
Last edited: