Secret Experience

Secret Experience (https://secretexperience.net/index.php)
-   [L2J] Dúvidas (https://secretexperience.net/forumdisplay.php?f=37)
-   -   [Web Site] Unknown column 'c.charId' in 'field list' HEROES (https://secretexperience.net/showthread.php?t=17118)

Yakuza 17-12-2009 03:59 PM

Unknown column 'c.charId' in 'field list' HEROES
 
pessoal, baixei um site aki e veio sheio de erros aqui... Ontem me dediquei e consegui arrumar boa parte !! Porem tem um que eu realmente nao to entendendo é isso ae dos HEROES ! tipow olha como ta:

Citação<?php

////////////////////////////////////
// //
// Canditados HERO V2 //
// //
// Script criado por //
// _Dudu_1533 //
// //
// [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar] //
// //
////////////////////////////////////

$sql = mysql_query("SELECT c.char_name, c.charId, c.classid, c.level, cl.id, cl.class_name, o.*, SUBSTRING_INDEX(cl.class_name, '_', -1) AS class_name FROM characters AS c, class_list AS cl, olympiad_nobles AS o WHERE c.charId = o.charId AND cl.id = c.classid ORDER BY c.classid, o.olympiad_points DESC") or die(mysql_error());
?> <h3>Heroes</h3><br />
<table width="71%" border="0" align="center">
<tr class="style10">
<td width="29%" align="center"><div align="center"><strong>Nome:</strong></div></td>
<td width="22%" align="center"><div align="center"><strong>Pontos:</strong></div></td>
<td width="23%" align="center"><div align="center"><strong>Competições:</strong></div></td>
<td width="26%" align="center"><div align="center"><strong>Classe:</strong></div></td>
</tr>
<?php
while($c = mysql_fetch_array($sql)) {
$cor++;
$bg = $cor % 2 == 0 ? '#F1F1F1' : '#E8E8E8';
?>
<tr class="style15">
<td align="center"><?php echo $c['char_name']; ?></td>
<td align="center"><?php echo $c['olympiad_points']; ?></td>
<td align="center"><?php echo $c['competitions_done']; ?></td>
<td align="center"><?php echo $c['class_name']; ?></td>
</tr>
<?
}
?>
</table>


por favor, desculpem ja consegui arrumar tambem ! =)

mais se quiserem postar alguma solução pra quem estiver com o mesmo problema ae...

Trinix 17-12-2009 08:10 PM

faz o seguinte abre seu script com o notepad e depois aperta CTRL + F e renomeia todos os nomes charId pra o nome da coluna com os ids dos chars na sua tabela de heroes ou de chars nao sei veja ae man


Horários baseados na GMT -3. Agora são 12:58 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.