Ir para conteúdo
  • 0

[PHP] O que tem de errado nesse script?


Alexclusive

Pergunta

Pessoal, esse script e de uma pagina TOP GUILDS de meu servidor.

Ele deixa a pagina com essa barra e CopyRight no meio. 

 

2vlaely.jpg

<?PHP$main_content .= '<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR><TD></TD><CENTER><H2>Top Guilds on Cartel Baiak</H2></CENTER><BR>';$main_content .= '<TABLE BORDER=5 CELLPADDING=4 CELLSPACING=1 WIDTH=100%><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD CLASS=whites><B><centeR>#</center></B></TD><TD CLASS=whites><b>Logo</b></TD><TD WIDTH=75% CLASS=whites><B>Name</B></TD><TD WIDTH=15% CLASS=whites><b><center>Kills</center></B></TD>';$number_of_rows = 0;foreach($SQL->query('SELECT `g`.`id` AS `id`, `g`.`name` AS `name`,`g`.`logo_gfx_name` AS `logo`, COUNT(`g`.`name`) as `frags`FROM `killers` kLEFT JOIN `player_killers` pk ON `k`.`id` = `pk`.`kill_id`LEFT JOIN `players` p ON `pk`.`player_id` = `p`.`id`LEFT JOIN `guild_ranks` gr ON `p`.`rank_id` = `gr`.`id`LEFT JOIN `guilds` g ON `gr`.`guild_id` = `g`.`id`WHERE `k`.`unjustified` = 1 AND `k`.`final_hit` = 1GROUP BY `name`ORDER BY `frags` DESC, `name` ASCLIMIT 0, 4;') as $guild){	if(! empty($guild['id']))	{	$bgcolor = (($number_of_rows++ % 2 == 1) ?  $config['site']['darkborder'] : $config['site']['lightborder']);	$main_content .= '<tr bgcolor="'.$bgcolor.'"><td style="text-align:center">'.($offset + $number_of_rows).'.</td><TD>	<a href="?subtopic=guilds&action=show&guild=' . $guild['id'] . '"><img src="/guild_image.php?id=' . $guild['id'] . '" width="64" height="64" border="0"/>	</TD>	<td><a href="?subtopic=guilds&action=show&guild=' . $guild['id'] . '">' . $guild['name'] . '</td>	<td><center>' . $guild['frags'] . ' kills</center></td>';	}}?>

 

Link para o comentário
Compartilhar em outros sites

3 respostass a esta questão

Posts Recomendados

  • 0

Você quer remover a barra ou apenas quer aproximar? se for só aproximar deixa assim:

 

 

 

<?PHP
$main_content .= '<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR><TD></TD><CENTER><H2>Top Guilds on Cartel Baiak</H2></CENTER>';
$main_content .= '<TABLE BORDER=5 CELLPADDING=4 CELLSPACING=1 WIDTH=100%><TD CLASS=whites><B><centeR>#</center></B></TD><TD CLASS=whites><b>Logo</b></TD><TD WIDTH=75% CLASS=whites><B>Name</B></TD><TD WIDTH=15% CLASS=whites><b><center>Kills</center></B></TD>';
$number_of_rows = 0;
foreach($SQL->query('SELECT `g`.`id` AS `id`, `g`.`name` AS `name`,
`g`.`logo_gfx_name` AS `logo`, COUNT(`g`.`name`) as `frags`
FROM `killers` k
LEFT JOIN `player_killers` pk ON `k`.`id` = `pk`.`kill_id`
LEFT JOIN `players` p ON `pk`.`player_id` = `p`.`id`
LEFT JOIN `guild_ranks` gr ON `p`.`rank_id` = `gr`.`id`
LEFT JOIN `guilds` g ON `gr`.`guild_id` = `g`.`id`
WHERE `k`.`unjustified` = 1 AND `k`.`final_hit` = 1
GROUP BY `name`
ORDER BY `frags` DESC, `name` ASC
LIMIT 0, 4;') as $guild)
{
    if(! empty($guild['id']))
    {
    $bgcolor = (($number_of_rows++ % 2 == 1) ?  $config['site']['darkborder'] : $config['site']['lightborder']);
    $main_content .= '<tr bgcolor="'.$bgcolor.'"><td style="text-align:center">'.($offset + $number_of_rows).'.</td><TD>
    <a href="?subtopic=guilds&action=show&guild=' . $guild['id'] . '"><img src="/guild_image.php?id=' . $guild['id'] . '" width="64" height="64" border="0"/>
    </TD>
    <td><a href="?subtopic=guilds&action=show&guild=' . $guild['id'] . '">' . $guild['name'] . '</td>
    <td><center>' . $guild['frags'] . ' kills</center></td>';
    }
}
?>

 

 

 

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...