Secret Experience

Secret Experience (https://secretexperience.net/)
-   [L2J] Dúvidas (https://secretexperience.net/l2j-duvidas/)
-   -   [Interlude] Site lista de hero erro (https://secretexperience.net/l2j-duvidas/13958-site-lista-de-hero-erro.html)

Nilsonred 01-10-2009 01:36 PM

Site lista de hero erro
 
Ae alguem pode me ajudar no meu site o lista de heros
nao esta aparecendo os heros do mes veja a imagem abaixo
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]

o arquivo
Código:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Pagina Inicial</title>

<style type="text/css">
<!--
body {
        margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
        background-image: url(images/bg1.gif);
}
body,td,th {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 10px;
        color: #FFFFFF;
}
.style2 {
        font-size: 36px;
        font-weight: bold;
}
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>

<body>
<br />
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top"><div align="center">
      <div align="center">
        <h1 align="center">Herois</h1>
        <div align="left">
          <p align="center"><img src="img/barra.png" alt="" width="419" height="29" /><br />
          </p>
          <h4 align="center">
            <font color="#FFFFFF">
            <?
//Script cirado por _Dudu_1533
//www.portal1533.com.br
//www.virtualmu.com.br


$servidor = 'localhost';
$usuario  = 'root';
$senha    = '';
$db      = 'l2jdb';

$con = mysql_connect($servidor, $usuario, $senha) or die(mysql_error());
mysql_select_db($db, $con) or die(mysql_error());
?>
<html>
<head>
<title>Lineage II L2 Mega </title>
<style type="text/css">
<!--
.style5 {font-size: 15px; font-family: Arial, Helvetica, sans-serif; font-weight: bold; }
.style8 {font-size: 12px; font-family: Arial, Helvetica, sans-serif; }
.style4 {font-size: 17px; font-family: Arial, Helvetica, sans-serif; font-weight: bold; }

body {
        background-image: url(images/bg1.gif);
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></head>
<body>


<table width="100% border="0" class="style4">
  <tr>
    <td align="center">Listando HEROES do servidor</td>
  </tr>
</table>
<br>
<br>
<table width="100%" border="0">
  <tr bgcolor="#1E1A11" class="style5" align="center" height="30">
    <td>Nome char:</td>
    <td>Level:</td>
    <td>Classe:</td>
    <td>Clan:</td>
    <td>Count:</td>
  </tr>
<?

$sql = mysql_query("SELECT * FROM heroes ORDER BY char_name") or die(mysql_error());
$cor = 0;
while($c = mysql_fetch_array($sql)) {
      $cor = $cor + 1;
      $bg  = $cor % 2 == 0 ? '#F1F1F1' : '#E8E8E8';

      $h = mysql_query("SELECT * FROM characters WHERE charId = '".$c['char_id']."'") or die(mysql_error());
      $n = mysql_fetch_array($h);
      $l = mysql_query("SELECT * FROM class_list WHERE id = '".$n['base_class']."'") or die(mysql_error());
      $g = mysql_fetch_array($l);
      $i = mysql_query("SELECT * FROM clan_data WHERE clan_id = '".$n['clanid']."'") or die(mysql_error());
      $j = mysql_fetch_array($i);
      $g['class_name'] = explode("_", $g['class_name']);
      $j['clan_name'] = empty($n['clanid']) ? 'Sem Clan.' : $j['clan_name'];

?>

  <tr bgcolor="<?php echo $bg; ?>" class="style8" align="center" height="23">
    <td><?php echo $n['char_name']; ?></td>
    <td><?php echo $n['level']; ?></td>
    <td><?php echo ucwords($g['class_name'][1]); ?></td>
    <td><?php echo $j['clan_name']; ?></td>
    <td><?php echo $c['count']; ?></td>
  </tr>
<?
}
?>
</table>
 </h4>
          </div>
      </div>
      <p> </font></p>
      </div></td>
  </tr>
</table>
</body>
</html>


jpsmaster16 01-10-2009 01:53 PM

creio ke vc esteja usandu um programa para deixar seu site on ke n suporta esta função,,,

isso deu aki em casa quandu usava o easyphp,,daew eu mudei para o appserver e ta funcionandu legal.

Nilsonred 01-10-2009 01:56 PM

tbem estou usando appserv
unico problema é na lista do hero.

jpsmaster16 01-10-2009 01:58 PM

ok,,eu tenhu uma pagia dessa,,vou upar aki pra vc guenta aew

----------

upei ja pega aki link direto [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]

Nilsonred 01-10-2009 02:22 PM

Baixei mas ficou do mesmo jeito
no seu ae abre normal ?

jpsmaster16 01-10-2009 02:26 PM

ahh entaum deve ser que seu servidor n existe essa linha na DB.

Que rev vc esta usadu?

Nilsonred 01-10-2009 02:56 PM

jfree 2741

jpsmaster16 01-10-2009 03:14 PM

amigo verifica se na tabela character, existe essa coluna com o nome charId?

se existir diferente por exemplo char_id,,,,daew vc é so alterar la nos codigos da pagina hero.

Nilsonred 01-10-2009 03:45 PM

Amigao nao existe no meu é obj_Id
vou ver la e mudar no arquivo.

depois digo se funcionou

--------------------------
nao deu certo

paytaly 01-10-2009 04:08 PM

Teste com esse:
Código:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Pagina Inicial</title>

<style type="text/css">
<!--
body {
        margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
        background-image: url(images/bg1.gif);
}
body,td,th {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 10px;
        color: #FFFFFF;
}
.style2 {
        font-size: 36px;
        font-weight: bold;
}
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>

<body>
<br />
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top"><div align="center">
      <div align="center">
        <h1 align="center">Herois</h1>
        <div align="left">
          <p align="center"><img src="img/barra.png" alt="" width="419" height="29" /><br />
          </p>
          <h4 align="center">
            <font color="#FFFFFF">
            <?
//Script cirado por _Dudu_1533
//www.portal1533.com.br
//www.virtualmu.com.br


$servidor = 'localhost';
$usuario  = 'root';
$senha    = '';
$db      = 'l2jdb';

$con = mysql_connect($servidor, $usuario, $senha) or die(mysql_error());
mysql_select_db($db, $con) or die(mysql_error());
?>
<html>
<head>
<title>Lineage II L2 Mega </title>
<style type="text/css">
<!--
.style5 {font-size: 15px; font-family: Arial, Helvetica, sans-serif; font-weight: bold; }
.style8 {font-size: 12px; font-family: Arial, Helvetica, sans-serif; }
.style4 {font-size: 17px; font-family: Arial, Helvetica, sans-serif; font-weight: bold; }

body {
        background-image: url(images/bg1.gif);
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></head>
<body>


<table width="100% border="0" class="style4">
  <tr>
    <td align="center">Listando HEROES do servidor</td>
  </tr>
</table>
<br>
<br>
<table width="100%" border="0">
  <tr bgcolor="#1E1A11" class="style5" align="center" height="30">
    <td>Nome char:</td>
    <td>Level:</td>
    <td>Classe:</td>
    <td>Clan:</td>
    <td>Count:</td>
  </tr>
<?

$sql = mysql_query("SELECT * FROM heroes ORDER BY char_name") or die(mysql_error());
$cor = 0;
while($c = mysql_fetch_array($sql)) {
      $cor = $cor + 1;
      $bg  = $cor % 2 == 0 ? '#F1F1F1' : '#E8E8E8';

      $h = mysql_query("SELECT * FROM characters WHERE obj_Id = '".$c['char_id']."'") or die(mysql_error());
      $n = mysql_fetch_array($h);
      $l = mysql_query("SELECT * FROM class_list WHERE id = '".$n['base_class']."'") or die(mysql_error());
      $g = mysql_fetch_array($l);
      $i = mysql_query("SELECT * FROM clan_data WHERE clan_id = '".$n['clanid']."'") or die(mysql_error());
      $j = mysql_fetch_array($i);
      $g['class_name'] = explode("_", $g['class_name']);
      $j['clan_name'] = empty($n['clanid']) ? 'Sem Clan.' : $j['clan_name'];

?>

  <tr bgcolor="<?php echo $bg; ?>" class="style8" align="center" height="23">
    <td><?php echo $n['char_name']; ?></td>
    <td><?php echo $n['level']; ?></td>
    <td><?php echo ucwords($g['class_name'][1]); ?></td>
    <td><?php echo $j['clan_name']; ?></td>
    <td><?php echo $c['count']; ?></td>
  </tr>
<?
}
?>
</table>
 </h4>
          </div>
      </div>
      <p> </font></p>
      </div></td>
  </tr>
</table>
</body>
</html>


jpsmaster16 01-10-2009 04:23 PM

aew faça como o amigo paytaly mostrou,,é basicamente oque eu disse, mais ja pegue oque ele fez ke creio ke vai ficar ok.

Nilsonred 01-10-2009 05:10 PM

@Playtaly
deu certinho amigao muito obrigado mesmo

so ficou tudo branco dai tenho q selecionar e arrasta pra fica
selecionado e ver os heros, como arrumar isso.
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
mau ae a nubesa é q nao sei nada de site.

paytaly 01-10-2009 05:27 PM

Tenta apagar essa parte:
Código:

  <tr bgcolor="<?php echo $bg; ?>" class="style8" align="center" height="23">
    <td><?php echo $n['char_name']; ?></td>
    <td><?php echo $n['level']; ?></td>
    <td><?php echo ucwords($g['class_name'][1]); ?></td>
    <td><?php echo $j['clan_name']; ?></td>
    <td><?php echo $c['count']; ?></td>
  </tr>


HugoAlcovias 01-10-2009 05:27 PM

Troque a cor da onde que esta marcado...
Citação:

$bg = $cor % 2 == 0 ? '#F1F1F1' : '#E8E8E8';
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]

Nilsonred 01-10-2009 05:48 PM

tentei das duas formas q os amigao ae disse
e continuou com aparencia branca ae eu so
mudei uma letra e melhorou um pouco
Citação:

<tr bgcolor="<?php echo $bg; ?>" class="style8" align="center" height="23">
<td><?php echo $n['char_name']; ?></td>
<td><?php echo $n['level']; ?></td>
<td><?php echo ucwords($g['class_name'][1]); ?></td>
<td><?php echo $j['clan_name']; ?></td>
<td><?php echo $c['count']; ?></td>
</tr>

de bg para bt
ae ficou assim
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]

ja melhorou um pouco

fetish 01-10-2009 07:55 PM

Essa class:style8 é setada na folha de estilos configurada no seu site.
Procure pelo arquivo .css e tente alterá-lo por lá.

Nilsonred 01-10-2009 09:43 PM

Abri o arquivo css mas é muita coisa sei nem pra onde vai isso

pra mim ja ta de boa.
quero agradecer a todos q me derao as dicas e chegamos ao erro
sem vcs dando as dicas eu nunca iria consetar isso muito obrigado mesmo
vlw

rafaeddd 12-02-2011 02:12 AM

Mesmo erro --'
 
O MEU FICA ASSIM BUAAAAAA


[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]

Citação:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Pagina Inicial</title>

<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(images/bg1.gif);
}
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #FFFFFF;
}
.style2 {
font-size: 36px;
font-weight: bold;
}
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>

<body>
<br />
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><div align="center">
<div align="center">
<h1 align="center">Herois</h1>
<div align="left">
<p align="center"><img src="img/barra.png" alt="" width="419" height="29" /><br />
</p>
<h4 align="center">
<font color="#FFFFFF">
<?
//Script cirado por _Dudu_1533
//www.portal1533.com.br
//www.virtualmu.com.br


$servidor = 'localhost';
$usuario = 'root';
$senha = '';
$db = 'l2jdb';

$con = mysql_connect($servidor, $usuario, $senha) or die(mysql_error());
mysql_select_db($db, $con) or die(mysql_error());
?>
<html>
<head>
<title>Lineage II Blood of Fire</title>
<style type="text/css">
<!--
.style5 {font-size: 15px; font-family: Arial, Helvetica, sans-serif; font-weight: bold; }
.style8 {font-size: 12px; font-family: Arial, Helvetica, sans-serif; }
.style4 {font-size: 17px; font-family: Arial, Helvetica, sans-serif; font-weight: bold; }

body {
background-image: url(images/bg1.gif);
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></head>
<body>


<table width="100% border="0" class="style4">
<tr>
<td align="center">Listando HEROES do servidor</td>
</tr>
</table>
<br>
<br>
<table width="100%" border="0">
<tr bgcolor="#1E1A11" class="style5" align="center" height="30">
<td>Nome char:</td>
<td>Level:</td>
<td>Classe:</td>
<td>Clan:</td>
<td>Count:</td>
</tr>
<?

$sql = mysql_query("SELECT * FROM heroes ORDER BY char_name") or die(mysql_error());
$cor = 0;
while($c = mysql_fetch_array($sql)) {
$cor = $cor + 1;
$bg = $cor % 2 == 0 ? '#F1F1F1' : '#E8E8E8';

$h = mysql_query("SELECT * FROM characters WHERE charId = '".$c['char_id']."'") or die(mysql_error());
$n = mysql_fetch_array($h);
$l = mysql_query("SELECT * FROM class_list WHERE id = '".$n['base_class']."'") or die(mysql_error());
$g = mysql_fetch_array($l);
$i = mysql_query("SELECT * FROM clan_data WHERE clan_id = '".$n['clanid']."'") or die(mysql_error());
$j = mysql_fetch_array($i);
$g['class_name'] = explode("_", $g['class_name']);
$j['clan_name'] = empty($n['clanid']) ? 'Sem Clan.' : $j['clan_name'];

?>

<tr bgcolor="<?php echo $bg; ?>" class="style8" align="center" height="23">
<td><?php echo $n['char_name']; ?></td>
<td><?php echo $n['level']; ?></td>
<td><?php echo ucwords($g['class_name'][1]); ?></td>
<td><?php echo $j['clan_name']; ?></td>
<td><?php echo $c['count']; ?></td>
</tr>
<?
}
?>
</table>
</h4>
</div>
</div>
<p> </font></p>
</div></td>
</tr>
</table>
</body>
</html>

lemile4 12-02-2011 07:51 AM

@nilsonnerd

olha mano eu ajeitei o site do meu colega e tava do mesmo jeito
procura essas linhas

$h = mysql_query("SELECT * FROM characters WHERE charId = '".$c['char_id']."'") or die(mysql_error());
$n = mysql_fetch_array($h);
$l = mysql_query("SELECT * FROM class_list WHERE id = '".$n['base_class']."'") or die(mysql_error());
$g = mysql_fetch_array($l);
$i = mysql_query("SELECT * FROM clan_data WHERE clan_id = '".$n['clanid']."'") or die(mysql_error());
$j = mysql_fetch_array($i);
$g['class_name'] = explode("_", $g['class_name']);
$j['clan_name'] = empty($n['clanid']) ? 'Sem Clan.' : $j['clan_name'];


OND tiver charid vc bota char_id isso ocore por que tem rev que diferente


Horários baseados na GMT -3. Agora são 03:15 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0