Εδω εχω μια εικονα.. και απο κατω το 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>
Hello everyone, we are one of the top gaming currency stores. We work exclusively with top projects.
If you are interested in anything like Adena, Coins, Equip, write to us
Discord - pchelacoin
Telegram - https://t.me/ipchelacoin
BOHPTS, KETRAWARS, EURO-PVP, L2REBORN, E-GLOBAL, LA2DREAM
TOP PRICE !!!!!!!
L2Elixir – Patch 4 Is Live!
We’re working non-stop, day and night, to deliver the best possible quality and bring back what made L2Elixir special. This project is built with passion, not shortcuts — for the old-school players who remember, and the new ones who want to experience it properly. Thank you for being part of the journey. Together, we’re making L2Elixir great again ❤️ The legends never fade.
⚙️ General
Enabled Class Change service (same class type only)
ALT + B → Services → Character Development
Enabled Shift + Click on Treasure Chests Players can now identify real chests (Adena, scroll drops) and use Key / Unlock
Event deaths now cancel only debuffs, All self buffs are preserved, fixes issues with Root and similar effects
Bladedancer class can now log in even when Max Clients (2) is reached. Since an active Bladedancer is not available for every damage dealer and some players tried to abuse this via VPN or a second PC, this feature was added to keep things fair. protections applies, requires testing!
🎒 Items
Crystallizing enchanted items now gives the correct increased crystal amount (retail-like behavior)
Removed Agathion Seal Bracelet: Rudolph from Santa rewards (Gracia Final item)
Added Dualsword Craft Stamp into Milestone Exchange list
🧙 Skills
Fixed Banish Undead lethal chance
Hot Springs Malaria and similar effects now level up faster while being attacked
Question
Spidey*
Γεια σε ολους.. Εχω ενα προβλημα με ενα php αρχειο...
Ενω ολα λειτουργουν το Online Players εχει προβλημα... Κοιταξτε τι βγαζει...
Εδω εχω μια εικονα.. και απο κατω το 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>3 answers to this question
Recommended Posts