Experienced Elementalist
- Joined
- May 2, 2009
- Messages
- 221
- Reaction score
- 3
Total Online: <?php onlineTotal(); ?>
Last edited by a moderator:
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!<p>Total Online: <?php onlineTotal(); ?></p>
<?php
//////Database Info///////
$DBhost = "localhost"; ///// Db Host location
$DBuser = "root"; //// Db User Name
$DBpass = ""; //// Db Password
$DBName = ""; //// Db Name
//////////////////
mysql_pconnect($DBhost,$DBuser,$DBpass) or die(mysql_error());
mysql_select_db("$DBName") or die(mysql_error());
///How manny Online
function ONL() {
global $dbhost", $Dbuser, $DBpass;
$db = mysql_connect("$dbhost", $Dbuser, $DBpass);
mysql_select_db( $Dbname ,$db);
$sql = "select * from accounttable where online = '1'";
$result = mysql_query($sql);
echo "".mysql_num_rows($result);
}
?>
<?php include( 'what ever name you named the above file.php' );
error_reporting(O);
?>
Total Online:<?php ONL() ?>
gmowner u are really noob... u dont know to code and u just unlife kid =D