Jump to content
  • 0
Sign in to follow this  
Ar4gorn

Erro no Script

Question

Boa Noite. Estou com um Script de TOP CLAN que não exibe a lista.

Gostaria de saber se tem algo de errado nesse script. Obrigado desde já.

Segue o Script:

<?php if(!$indexing) { exit; } ?>
<h1>TOP CLAN</h1>

<table cellspacing="0" cellpadding="0" border="0" class='tabrank'>
    <tr class='cabecalho'>
        <td>Pos</td>
        <td><?php echo $LANG[12013]; ?></td>
        <td>Lvl</td>
        <td>Ally</td>
        <td style='font-size:10px'><?php echo $LANG[12012]; ?></td>
    </tr>

<?php
$queryselect = mysql_query("SELECT
    C1.clan_name,
    C1.clan_level,
    C1.ally_name,
    P.char_name,
    (SELECT COUNT(*) FROM ".$db.".characters WHERE clanid = C1.clan_id) AS membros
FROM
    ".$db.".clan_data AS C1
LEFT JOIN
    ".$db.".characters AS P ON P.charId = C1.leader_id
ORDER BY
    C1.clan_level DESC, C1.reputation_score DESC, membros DESC
LIMIT 100
", $conexao);
$i=1;

while($dados=mysql_fetch_array($queryselect)) {
?>

<tr<?php if($i % 2 == 0) { echo " class='two'"; } ?>>
        <td><?php echo $i; ?>&ordm;</td>
        <td style='font-size:11px;' class='foco'><?php echo $dados['clan_name']; ?></td>
        <td><?php echo $dados['clan_level']; ?></td>
        <td style='font-size:10px;'><?php echo (empty($dados['ally_name']) ? '<i>-</i>' : $dados['ally_name']); ?></td>
        <td><?php echo $dados['membros']; ?></td>
</tr>

<?php $i++; } ?>

</table>

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

se os erros do seu site nao estao ocultos poste eles pra que alguem ou eu mesmo possa te ajudar mas vc precisa postar a mensagem que aparece na pagina

se estao ocultos 

add

mysqli_error(1); 

 

Share this post


Link to post
Share on other sites

Precisando de Dedicado ou VPS?

Conheça a L2JCenter

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  




     



×
×
  • Create New...