Ir para conteúdo
  • Cadastre-se
  • 0

[Tutorial]Colokar rank no site


DarKaN

Pergunta

6 respostass a esta questão

Posts recomendados


Cara Nao tenho SS, mais eh no arquivo pvpkills.php, to usando o WAMP, os arquivos connection.php e status.php ja ta configurados, o problema msm eh nessa linha do arquivo pvpkills.php

 

while($row = mysql_fetch_array($activity))

 

queria saber o que eu ponho ai...

 

minha DB eh a padrao, localhost, user root, sem senha, l2jdb....

Link para o comentário
Compartilhar em outros sites

O codigo eh esse...

 

---------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

<html>

<head>

<meta http-equiv="Content-Type" content="text/html" charset="Windows-1251">

<meta http-equiv="Content-Style-Type" content="text/css">

<title>PvP Stats</title>

</head>

<body bgcolor="#000000" style="color:#999999; font-size:11px; font-family:verdana;">

<?php

include("Connection.php");

//Do not remove this header

//This script package is distributed by kadar of L2j.sourceforge

//You are free to distribute this package as long as the headers stay intact.

 

$FORM2 = "<table width=400 style=\"font-size:11px; font-family:verdana; color:#999999;\" cellspacing=\"0\" cellpadding=\"0\" align=center>

<tr>

<td width=100% height=34 colspan=3 align=center class=\"content\" style=\"font-size:12px; font-family:verdana; color:#999999;\"><b>PvP Stats - Top 50<br><br></b>

</td>

</tr>

<tr>

<td style=\"font-size:12px; border:1px #999999 solid;\"><center><b>Position</b></center></td>

<td style=\"font-size:12px; border:1px #999999 solid;\"><center><b>Name</b></center></td>

<td style=\"font-size:12px; border:1px #999999 solid;\"><center><b>Kills</b></center></td>

</tr>";

 

$activity = mysql_query("SELECT characters.pvpkills,characters.char_name FROM characters Where ((characters.pvpkills >=1) AND (characters.accesslevel = 0)) ORDER BY characters.pvpkills DESC limit 50");

$i = 1;

while($row = mysql_f($sql_characters.pvpkills))

 

{

$FORM2 .= '<tr>

<td style=\"font-size:10px; font-family:verdana; color:#999999;\" class=content align=center>'.$i.'</td>

<td style=\"font-size:10px; font-family:verdana; color:#999999;\" class=content align=center>'.$row['char_name'].'</td>

<td style=\"font-size:10px; font-family:verdana; color:#999999;\" class=content align=center>'.$row['pvpkills'].'</td>

</tr>';

 

$i++;

}

 

echo $FORM2;

 

?>

</body>

</html>

 

 

------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

Por favor me Ajudem a resolver isso!!!

Link para o comentário
Compartilhar em outros sites

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.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  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.

Processando...



×
×
  • Criar Novo...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.