• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

[PHP] News info - Problem

Lukanio

### Own3D ###
Joined
Nov 25, 2008
Messages
325
Reaction score
6
Posiadam skrypt
Code:
$main_content .= "<table width=\"100%\" style=\"background-color: #1f1f1f\">";
$i = 1;
foreach($SQL->query("SELECT name, level, experience, online FROM `players` WHERE `group_id` < 3 ORDER BY `players`.`level` DESC LIMIT 0 , 5") as $result) {
if ($result[3] == 1) {
	$on = "<font color=\"green\">ONLINE</font>";
} else {
	$on = "<font color=\"red\">OFFLINE</font>";
};
$main_content .= "
<tr style=\"background-color: #2c2c2c\" height=\"10px\">
<td align=\"center\">$i.</td>
<td align=\"center\"><a href=\"?subtopic=characters&amp;name=".htmlspecialchars($result[0])."\">$result[0]</a></td>
<td align=\"center\"><font color=\"white\"><em>$result[1]</em></font></td>
<td align=\"center\"><font color=\"white\"><em><b>$on</b></em></font></td></tr>";
$i++;
}
$main_content .= "</table><br>";
a chcailbym zeby zamiast:
#1f1f1f - KOLOR
bylo
'.$config['site']['darkborder'].' - KOLOR z configa

Prosze o pomoc.
 
Back
Top