Ir para conteúdo
  • Cadastre-se
  • 0

erro no site


gabrielbuy

Pergunta

5 respostass a esta questão

Posts recomendados

  • 0

vê nas config's que ele faz conexao.. ou entao abre essa pasta ai.. na linha 28

e tipo.. veja no inicio onde ele faz conexao com o bando de dados.. va ate o local.. e veja se tem alguma config errada !

se nao tiver.. pode upar o site. que pegará e esse erro sumirá !

 

 

Curte aiii ~~~~~~~~~~~~~~~~~~~~>

Gostou deste tópico? Curta!

 

Voltando ao fórum...

Link para o comentário
Compartilhar em outros sites


  • 0

tá ae tudo, me ajudem

<?php

class statusServer{

private $sqlContas;

private $sqlPersonagens;

private $sqlOnlines;

private $sqlClans;

private $sqlHeroes;

private $sqlAdmins;

private $sqlGms;

private $sqlJail;

private $sqlAccBans;

private $sqlCharBans;

 

public function __construct(){

$root->sqlContas = "l2jdb * FROM accounts";

$root->sqlPersonagens = "l2jdb* FROM characters";

$root->sqlOnlines = "l2jdb * FROM characters WHERE online = '1'";

$root->sqlClans = "l2jdb * FROM clan_data";

$root->sqlHeroes = "l2jdb * FROM heroes WHERE played = '1'";

$root->sqlAdmins = "l2jdb * FROM characters WHERE accesslevel = '200'";

$root->sqlGms = "l2jdb * FROM characters WHERE accesslevel = '100'";

$root->sqlJail = "l2jdb * FROM characters WHERE in_jail = '1'";

$root->sqlAccBans = "l2jdb * FROM accounts WHERE access_level = '-100'";

$root->sqlCharBans = "l2jdb * FROM characters WHERE accesslevel = '-100'";

}

 

public function getContas(){

$root) = mysql_query($root->sqlContas);

$total = mysql_num_rows($root));

echo $total;

}

 

public function getPersonagens(){

$root) = mysql_query($root->sqlPersonagens);

$total = mysql_num_rows($root));

echo $total;

}

 

public function getOnlines(){

$root) = mysql_query($root->sqlOnlines);

$total = mysql_num_rows($root));

echo $total;

}

 

public function getClans(){

$root) = mysql_query($root->sqlClans);

$total = mysql_num_rows($root));

echo $total;

}

 

public function getHeroes(){

$root) = mysql_query($root->sqlHeroes);

$total = mysql_num_rows($root));

echo $total;

}

 

public function getAdmins(){

$root) = mysql_query($root->sqlAdmins);

$total = mysql_num_rows($root));

echo $total;

}

 

public function getGms(){

$root) = mysql_query($root->sqlGms);

$total = mysql_num_rows($root));

echo $total;

}

 

public function getJail(){

$root) = mysql_query($root->sqlJail);

$total = mysql_num_rows($root));

echo $total;

}

 

public function getAccBans(){

$root) = mysql_query($root->sqlAccBans);

$total = mysql_num_rows($root));

echo $total;

}

 

public function getCharBans(){

$root) = mysql_query($root->sqlCharBans);

$total = mysql_num_rows($root));

echo $total;

}

}

?>

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.