Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $direccion_IP_Mysql = "127.0.0.1";
- $user = "rot";
- $pass = "";
- $nombreBaseDatos = "l2jgs";
- mysql_connect($direccion_IP_Mysql, $user, $pass) or DIE ("No se pudo conectar al servidor MySQL");
- mysql_select_db($nombreBaseDatos) or DIE ("No se pudo conectar a la base de datos");
- $query = "Select ID from characters where online=1";
- $res = mysql_query($query);
- $online = mysql_num_rows($res);
- echo "PJs online: " + $online;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement