configs.php
players_on.php
- Código:
<?
$servidor = "127.0.0.1";
$usuario = "root";
$clave = "pass";
$logon = "logon";
$char = "characters";
$world = "world";
$conecta = mysql_connect($servidor, $usuario, $clave) or die("No se ha podido conectar con el servidor MySQL. Int�ntalo mas tarde.");
?>
players_on.php
- Código:
<?php
include("configs-php");
$online = '1';
$playerson = mysql_query("SELECT * FROM $logon.account WHERE online='".$online."'");
$playerson1 = mysql_num_rows($playerson);
?>
Players online : <b><?=$playerson1?></b>