Jump to content

Recommended Posts

Posted

configs.php

<?
$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

<?php
include("configs-php");
$online = '1';
$playerson =  mysql_query("SELECT * FROM $char.characters WHERE online='".$online."'");
$playerson1 = mysql_num_rows($playerson);
?>
Players online : <b><?=$playerson1?></b>
Posted

Your title is "Online players script" not accounts... so I simply gave you an alternate way :) @Will :D .

happy? and I put the players

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.