Você não é registrado, por favor registre-se para ter acesso ao conteúdo completo.
Caso seja registrado, efetue login.
Esqueceu sua senha? Clique aqui
Recomendamos o uso do Mozilla Firefox para uma melhor visualização.    


Início Postados Hoje Marcar Fóruns Como Lidos Álbums Banidos SE Team Medalhas
Voltar   Secret Experience > Área L2J > [L2J] Dúvidas
Registrar Loteria VIPStaff SERegras do fórum Comunidade Arcade Postados Hoje Pesquisar Experience
   

Secret Experience.NET   Secret Experience Corporation - Welcome To The Real World
     Anúncios SE

Resposta
 
LinkBack Ferramentas do Tópico Modos de Exibição
Antigo 01-10-2009, 01:36 PM   #1 (permalink)
Membro - Capitão
 
Avatar de Nilsonred
 
Registrado em: Jul 2009
Posts: 114
Agradeceu: 66
Agradecido 18 Vezes em 13 Posts
Achei Ruim:
Acharam ruim Vezes em Posts

Inventório de Nilsonred

Padrão 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: [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
<!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>

Nilsonred está offline   Responder com Citação
Links Patrocinados
Antigo 01-10-2009, 01:53 PM   #2 (permalink)
Membro - Veterano
 
Avatar de jpsmaster16
 
Registrado em: Jul 2009
Localização: Machadinho D'Oeste- Rondônia
Posts: 731
Agradeceu: 121
Agradecido 319 Vezes em 109 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
Enviar mensagem via Windows Live Messenger para jpsmaster16
Pontos: 6,106, Nível: 50
Pontos: 6,106, Nível: 50 Pontos: 6,106, Nível: 50 Pontos: 6,106, Nível: 50
Atividade: 0%
Atividade: 0% Atividade: 0% Atividade: 0%

Nome Real: Jean Paulo Sassi de Miranda

Inventório de jpsmaster16

Padrão

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.

jpsmaster16 está offline   Responder com Citação
Antigo 01-10-2009, 01:56 PM   #3 (permalink)
Membro - Capitão
 
Avatar de Nilsonred
 
Registrado em: Jul 2009
Posts: 114
Agradeceu: 66
Agradecido 18 Vezes em 13 Posts
Achei Ruim:
Acharam ruim Vezes em Posts

Inventório de Nilsonred

Padrão

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

Nilsonred está offline   Responder com Citação
Antigo 01-10-2009, 01:58 PM   #4 (permalink)
Membro - Veterano
 
Avatar de jpsmaster16
 
Registrado em: Jul 2009
Localização: Machadinho D'Oeste- Rondônia
Posts: 731
Agradeceu: 121
Agradecido 319 Vezes em 109 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
Enviar mensagem via Windows Live Messenger para jpsmaster16
Pontos: 6,106, Nível: 50
Pontos: 6,106, Nível: 50 Pontos: 6,106, Nível: 50 Pontos: 6,106, Nível: 50
Atividade: 0%
Atividade: 0% Atividade: 0% Atividade: 0%

Nome Real: Jean Paulo Sassi de Miranda

Inventório de jpsmaster16

Padrão

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]

jpsmaster16 está offline   Responder com Citação
O seguinte membro ao lado disse Obrigado(a) a : jpsmaster16 por gostar deste Post :
Nilsonred (01-10-2009)
Antigo 01-10-2009, 02:22 PM   #5 (permalink)
Membro - Capitão
 
Avatar de Nilsonred
 
Registrado em: Jul 2009
Posts: 114
Agradeceu: 66
Agradecido 18 Vezes em 13 Posts
Achei Ruim:
Acharam ruim Vezes em Posts

Inventório de Nilsonred

Padrão

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

Nilsonred está offline   Responder com Citação
Antigo 01-10-2009, 02:26 PM   #6 (permalink)
Membro - Veterano
 
Avatar de jpsmaster16
 
Registrado em: Jul 2009
Localização: Machadinho D'Oeste- Rondônia
Posts: 731
Agradeceu: 121
Agradecido 319 Vezes em 109 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
Enviar mensagem via Windows Live Messenger para jpsmaster16
Pontos: 6,106, Nível: 50
Pontos: 6,106, Nível: 50 Pontos: 6,106, Nível: 50 Pontos: 6,106, Nível: 50
Atividade: 0%
Atividade: 0% Atividade: 0% Atividade: 0%

Nome Real: Jean Paulo Sassi de Miranda

Inventório de jpsmaster16

Padrão

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

Que rev vc esta usadu?

jpsmaster16 está offline   Responder com Citação
Antigo 01-10-2009, 02:56 PM   #7 (permalink)
Membro - Capitão
 
Avatar de Nilsonred
 
Registrado em: Jul 2009
Posts: 114
Agradeceu: 66
Agradecido 18 Vezes em 13 Posts
Achei Ruim:
Acharam ruim Vezes em Posts

Inventório de Nilsonred

Padrão

jfree 2741

Nilsonred está offline   Responder com Citação
Antigo 01-10-2009, 03:14 PM   #8 (permalink)
Membro - Veterano
 
Avatar de jpsmaster16
 
Registrado em: Jul 2009
Localização: Machadinho D'Oeste- Rondônia
Posts: 731
Agradeceu: 121
Agradecido 319 Vezes em 109 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
Enviar mensagem via Windows Live Messenger para jpsmaster16
Pontos: 6,106, Nível: 50
Pontos: 6,106, Nível: 50 Pontos: 6,106, Nível: 50 Pontos: 6,106, Nível: 50
Atividade: 0%
Atividade: 0% Atividade: 0% Atividade: 0%

Nome Real: Jean Paulo Sassi de Miranda

Inventório de jpsmaster16

Padrão

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.

jpsmaster16 está offline   Responder com Citação
O seguinte membro ao lado disse Obrigado(a) a : jpsmaster16 por gostar deste Post :
Nilsonred (01-10-2009)
Antigo 01-10-2009, 03:45 PM   #9 (permalink)
Membro - Capitão
 
Avatar de Nilsonred
 
Registrado em: Jul 2009
Posts: 114
Agradeceu: 66
Agradecido 18 Vezes em 13 Posts
Achei Ruim:
Acharam ruim Vezes em Posts

Inventório de Nilsonred

Padrão

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

depois digo se funcionou

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

Nilsonred está offline   Responder com Citação
Antigo 01-10-2009, 04:08 PM   #10 (permalink)
playstation
 
Avatar de paytaly
 
Registrado em: Dec 2008
Localização: Belo Horizonte
Posts: 1,284
Agradeceu: 118
Agradecido 1,503 Vezes em 772 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
Enviar mensagem via Windows Live Messenger para paytaly
Nome Real: Marcelo

Inventório de paytaly

Padrão

Teste com esse:
Código: [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
<!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>

__________________
Há! Só posso rir de quem quer vender o que mal sabe fazer...
Quer ser respondido direito!? Não faça perguntas idiotas. (Y)
paytaly está offline   Responder com Citação
O seguinte membro ao lado disse Obrigado(a) a : paytaly por gostar deste Post :
Nilsonred (01-10-2009)
Resposta


Regras para Posts
Você não pode postar novos tópicos
Você não pode postar respostas
Você não pode postar anexos
Você não pode editar seus posts

Código [IMG] Sim
Código HTML Não
Trackbacks are Sim
Pingbacks are Sim
Refbacks are Sim



Horários baseados na GMT -3. Agora são 04:54 AM.
 



Search Engine Optimization by vBSEO 3.3.0