Εδω εχω μια εικονα.. και απο κατω το script ... Βοηθηστε με... Τι ειναι λαθος?
<?php include "config/stats.php" ?>
<?php
mysql_connect($db_serv,$db_user,$db_pass) or die (mysql_error());
mysql_select_db($db_name) or die(mysql_error());
//Online Players
$query = ("SELECT * FROM characters WHERE online=1 and accesslevel>=0");
$result = mysql_query($query) or die(mysql_error());
$num2=mysql_numrows($result);
$sum=$num2;
//Total Accounts
$query = ("SELECT * FROM accounts WHERE access_level>=0");
$result = mysql_query($query) or die(mysql_error());
$acc2=mysql_numrows($result);
//Total Characters
$query = ("SELECT * FROM characters WHERE accesslevel>=0");
$result = mysql_query($query) or die(mysql_error());
$char2=mysql_numrows($result);
//Alliance
$query = ("SELECT * FROM clan_data WHERE ally_id!=\"\"");
$result = mysql_query($query) or die(mysql_error());
$alliance2=mysql_numrows($result);
//Clan
$get_config_data="SELECT clan_id FROM clan_data";
$query = ("SELECT clan_id FROM clan_data WHERE clan_id>0");
$result = mysql_query($query) or die(mysql_error());
$clan2=mysql_numrows($result);
mysql_close();
mysql_connect($db_serv,$db_user,$db_pass) or die (mysql_error());
mysql_select_db($db_name) or die(mysql_error());
?>
Online Players: <?php print ("$num"); ?><br>
Total Accounts: <?php print ("$acc2"); ?><br>
Total Characters: <?php print ("$char2"); ?><br>
Total Aliances: <?php print ("$alliance2"); ?><br>
Total Clans: <?php print ("$clan2"); ?><br>
Question
Spidey*
Γεια σε ολους.. Εχω ενα προβλημα με ενα php αρχειο...
Ενω ολα λειτουργουν το Online Players εχει προβλημα... Κοιταξτε τι βγαζει...
Εδω εχω μια εικονα.. και απο κατω το script ... Βοηθηστε με... Τι ειναι λαθος?
3 answers to this question
Recommended Posts