Noticias:

No tienes permiso para ver los enlaces. Para poder verlos Registrate o Conectate.

Menú Principal

Accounts and Characters Created

Iniciado por Swarlog, Jun 13, 2025, 11:49 PM

Tema anterior - Siguiente tema

Swarlog

<?php
   $server_ip = "localhost";
   $mysql_user = "root";
   $mysql_pass = "";
   $database = "test";
   
   $connect = mysql_connect("$server_ip", "$mysql_user", "$mysql_pass") or die(mysql_error()); 
   $db_select = mysql_select_db("$database", $connect) or die(mysql_error());
   $characters = mysql_query("SELECT * FROM characters") or die(mysql_error()) ;
   $accounts = mysql_query("SELECT * FROM accounts") or die(mysql_error()) ;
   
   $total_char = mysql_num_rows($characters);
   $total_acc = mysql_num_rows($accounts);
   
   echo 'Characters created:&nbsp;'.$total_char.'</br>';
   echo 'Accounts created:&nbsp;'.$total_acc;
   
mysql_close($connect);
?>