kaiqu3gabriel
New Member
- Joined
- Nov 9, 2017
- Messages
- 27
- Reaction score
- 4
Hello, I have a new project and in my znote I don't know how to remove the limit for tables.
My problem is this:
When I put a new height for one info, the other info get auto height, example:
I need only one size per info, like from level, to level, ect.
My PHP:
My problem is this:
When I put a new height for one info, the other info get auto height, example:
![image.png](/proxy.php?image=https%3A%2F%2Fi.postimg.cc%2FMTr4f98r%2Fimage.png&hash=ea58478a6a991c36393c2a14a1caf42c)
I need only one size per info, like from level, to level, ect.
My PHP:
PHP:
<?php require_once 'engine/init.php'; include 'layout/overall/header.php'; ?>
<h1>Server Information</h1>
<h4>Experience:</h4>
<?php
$path = '/home/pedrola2/global/';
echo '<table border="1" cellpadding="0"><tr class="yellow"><td style="width: 100px"><center>From level:</center></td><td style="width: 100px"><center>To level:</center></td><td><center>Exp:</center></td></tr>';
if (is_dir($path)) {
$xml1 = simplexml_load_file($path."data/XML/stages.xml");
foreach ($xml1->world->children() as $stage1) {
if ($stage1['maxlevel'] == '') {
$stage1['maxlevel'] = 'higher than 181';
}
echo '<tr><td><center>'.$stage1['minlevel'].'</center></td><td><center>'.$stage1['maxlevel'].'</center></td><td><center>'.$stage1['multiplier'].'</center></td></tr>';
}
$word = 'a';
$loadconfig = file($path.'/config.lua');
$key = 'rateMagic';
$key2 = 'rateLoot';
$key3 = 'rateSkill';
$found = false;
foreach ($loadconfig as $lineNumber => $e) {
if (strpos($e,$key) !== false) {
$found = true;
break;
}
}
foreach ($loadconfig as $lineNumberr => $ee) {
if (strpos($ee,$key2) !== false) {
$found = true;
break;
}
}
foreach ($loadconfig as $lineNumberrr => $eee) {
if (strpos($eee,$key3) !== false) {
$found = true;
break;
}
}
echo '<table><h4>Skills:</h1></tr>';
if ($found) {
echo '<table border="1" cellpadding="0"><tr class="yellow"><td style="width: 100px"><center>Magic:</center></td><td><center>Skills:</center></td><td><center>Loot:</center></td></tr>';
echo '<tr><td><center>2x</center></td><td><center>3x</center></td><td><center>1x custom</center></td></tr>';
}
$getallplayers = mysql_query("SELECT COUNT(*) as MAX FROM players");
$parseallplayers = mysql_fetch_assoc($getallplayers);
$getallaccounts = mysql_query("SELECT COUNT(*) as MEX FROM accounts");
$parseallaccounts = mysql_fetch_assoc($getallaccounts);
$getallguilds = mysql_query("SELECT COUNT(*) as MOX FROM guilds");
$parseallguilds = mysql_fetch_assoc($getallguilds);
echo '</table></tr>';
echo '<table cellpadding="0"><tr class="yellow"><td><center>Total accounts</center></td><td><center>Total players</center></td><td><center>Total guilds</center></td></tr>';
echo '<tr><td><center>'.$parseallplayers['MAX'].'</center></td><td><center>'.$parseallaccounts['MEX'].'</center></td><td><center>'.$parseallguilds['MOX'].'</center></td></tr>';
echo '</table></tr>';
$talkactions = simplexml_load_file($path.'/data/talkactions/talkactions.xml');
echo '<table cellpadding="0"><tr class="yellow"><td><center>Player commands</center></td></center></tr>';
foreach ($talkactions as $commands) {
if (empty($commands['access'])) {
echo '<center><tr><td><center>'.$commands['words'].'</center></td></tr></center>';
}
}
echo '</table></tr>';
} else {
echo '<br><b>Invalid path!</b>';
}
?>
<?php include 'layout/overall/footer.php'; ?>