Jump to content

Una ayuda con mi página web, gente con conocimientos en php


Rafa23Alzira

Mensajes recomendados

Buenas, alguien que entienda de php sería tan amable de hacerme 2 favores, el primero es más esencial el 2 ya da un poco más igual:

 

1- Tengo un ranking de personajes, pero mi web no lo incluye de gremios, sería tan amable de con el de personajes hacer otro para gremios, si también quiere ponerle una pestañita a la miniatura del top que sale en el index para que puedas elegir gremio o personaje.

 

2- Contador de personajes online, en 24h, cuentas registradas y gremios.

 

Si me hacen el favor mejor, si me cobran no puedo dar gran cosa, poneros en contacto conmigo por aquí o skype.

 

Gracias de antemano.

Enlace para comentar
Compartir en otros sitios

<center>

<div class="online-statistik" style="font-size:14px; color:#38322f; float:center;">

<div id="status-top"></div>

<div id="status-main">

 

<?php

echo '<table style="border-spacing:0px;border-collapse:inherit;"><tbody>';

 

$result1 = mysql_fetch_assoc(mysql_query("SELECT COUNT(id) AS count FROM player.player WHERE DATE_SUB(NOW(), INTERVAL 12 MINUTE) < last_play"));

$result2 = mysql_fetch_assoc(mysql_query("SELECT COUNT(id) AS count FROM player.player WHERE DATE_SUB(NOW(), INTERVAL 24 HOUR) < last_play"));

 

echo '<tr style="height:20px;line-height:20px;"><td>Personajes Online:</td><td><span style="color:#8A4B08;">'.$result1['count'].'</span></td>';

echo '<tr style="height:20px;line-height:20px;"><td>Personajes Online (24h):</td><td><span style="color:#8A4B08;">'.$result2['count'].'</span></td>';

 

mysql_select_db("account");

$accs = mysql_query("SELECT * from account");

$accszahl = mysql_num_rows($accs);

 

mysql_select_db("player");

$chars = mysql_query("SELECT * from player");

$charanzahl = mysql_num_rows($chars);

 

mysql_select_db("player");

$gilden = mysql_query("SELECT * from guild");

$gildenanzahl = mysql_num_rows($gilden);

echo '<tr style="height:20px;line-height:20px;"><td>Cuentas:</td><td><span style="color:#8A4B08;">'.$accszahl.'</span></td>';

echo '<tr style="height:20px;line-height:20px;"><td>Personajes:</td><td><span style="color:#8A4B08;">'.$charanzahl.'</span></td>';

echo '<tr style="height:20px;line-height:20px;"><td>Gremios:</td><td><span style="color:#8A4B08;">'.$gildenanzahl.'</span></td>';

echo '<tr style="height:20px;line-height:20px;"><td>Rate Exp</td><td><span style="color:#8A4B08;">x1000</span></td>';

echo '<tr style="height:20px;line-height:20px;"><td>Rate Yang</td><td><span style="color:#8A4B08;">x250</span></td>';

echo '<tr style="height:20px;line-height:20px;"><td>Rate Drop</td><td><span style="color:#8A4B08;">x200 </span></td>';

 

 

echo '</table></tbody>';

?>

</div>

<div id="status-footer"></div>

 

<div id="status-top"></div>

<div id="status-main">

</div>

<div id="status-footer"></div>

<div onclick="reloadstatistik()" class="refresh_btn">»<a style="cursor:pointer; color:#8A4B08; font-size:11px;">Actualizar</a></div>

</div></center>

 

trae personajes contador de j etc

Enlace para comentar
Compartir en otros sitios

 

 

<center>

<div class="online-statistik" style="font-size:14px; color:#38322f; float:center;">

<div id="status-top"></div>

<div id="status-main">

 

<?php

echo '<table style="border-spacing:0px;border-collapse:inherit;"><tbody>';

 

$result1 = mysql_fetch_assoc(mysql_query("SELECT COUNT(id) AS count FROM player.player WHERE DATE_SUB(NOW(), INTERVAL 12 MINUTE) < last_play"));

$result2 = mysql_fetch_assoc(mysql_query("SELECT COUNT(id) AS count FROM player.player WHERE DATE_SUB(NOW(), INTERVAL 24 HOUR) < last_play"));

 

echo '<tr style="height:20px;line-height:20px;"><td>Personajes Online:</td><td><span style="color:#8A4B08;">'.$result1['count'].'</span></td>';

echo '<tr style="height:20px;line-height:20px;"><td>Personajes Online (24h):</td><td><span style="color:#8A4B08;">'.$result2['count'].'</span></td>';

 

mysql_select_db("account");

$accs = mysql_query("SELECT * from account");

$accszahl = mysql_num_rows($accs);

 

mysql_select_db("player");

$chars = mysql_query("SELECT * from player");

$charanzahl = mysql_num_rows($chars);

 

mysql_select_db("player");

$gilden = mysql_query("SELECT * from guild");

$gildenanzahl = mysql_num_rows($gilden);

echo '<tr style="height:20px;line-height:20px;"><td>Cuentas:</td><td><span style="color:#8A4B08;">'.$accszahl.'</span></td>';

echo '<tr style="height:20px;line-height:20px;"><td>Personajes:</td><td><span style="color:#8A4B08;">'.$charanzahl.'</span></td>';

echo '<tr style="height:20px;line-height:20px;"><td>Gremios:</td><td><span style="color:#8A4B08;">'.$gildenanzahl.'</span></td>';

echo '<tr style="height:20px;line-height:20px;"><td>Rate Exp</td><td><span style="color:#8A4B08;">x1000</span></td>';

echo '<tr style="height:20px;line-height:20px;"><td>Rate Yang</td><td><span style="color:#8A4B08;">x250</span></td>';

echo '<tr style="height:20px;line-height:20px;"><td>Rate Drop</td><td><span style="color:#8A4B08;">x200 </span></td>';

 

 

echo '</table></tbody>';

?>

</div>

<div id="status-footer"></div>

 

<div id="status-top"></div>

<div id="status-main">

</div>

<div id="status-footer"></div>

<div onclick="reloadstatistik()" class="refresh_btn">»<a style="cursor:pointer; color:#8A4B08; font-size:11px;">Actualizar</a></div>

</div></center>

 

trae personajes contador de j etc

 

 

 

Como te dije por skype, busco adaptar la mía, no otro script de otra página.
Enlace para comentar
Compartir en otros sitios

  • 2 months later...

 

 

<center>
<div class="online-statistik" style="font-size:14px; color:#38322f; float:center;">
<div id="status-top"></div>
<div id="status-main">

<?php
echo '<table style="border-spacing:0px;border-collapse:inherit;"><tbody>';

$result1 = mysql_fetch_assoc(mysql_query("SELECT COUNT(id) AS count FROM player.player WHERE DATE_SUB(NOW(), INTERVAL 12 MINUTE) < last_play"));
$result2 = mysql_fetch_assoc(mysql_query("SELECT COUNT(id) AS count FROM player.player WHERE DATE_SUB(NOW(), INTERVAL 24 HOUR) < last_play"));

echo '<tr style="height:20px;line-height:20px;"><td>Personajes Online:</td><td><span style="color:#8A4B08;">'.$result1['count'].'</span></td>';
echo '<tr style="height:20px;line-height:20px;"><td>Personajes Online (24h):</td><td><span style="color:#8A4B08;">'.$result2['count'].'</span></td>';

mysql_select_db("account");
$accs = mysql_query("SELECT * from account");
$accszahl = mysql_num_rows($accs);

mysql_select_db("player");
$chars = mysql_query("SELECT * from player");
$charanzahl = mysql_num_rows($chars);

mysql_select_db("player");
$gilden = mysql_query("SELECT * from guild");
$gildenanzahl = mysql_num_rows($gilden);
echo '<tr style="height:20px;line-height:20px;"><td>Cuentas:</td><td><span style="color:#8A4B08;">'.$accszahl.'</span></td>';
echo '<tr style="height:20px;line-height:20px;"><td>Personajes:</td><td><span style="color:#8A4B08;">'.$charanzahl.'</span></td>';
echo '<tr style="height:20px;line-height:20px;"><td>Gremios:</td><td><span style="color:#8A4B08;">'.$gildenanzahl.'</span></td>';
echo '<tr style="height:20px;line-height:20px;"><td>Rate Exp</td><td><span style="color:#8A4B08;">x1000</span></td>';
echo '<tr style="height:20px;line-height:20px;"><td>Rate Yang</td><td><span style="color:#8A4B08;">x250</span></td>';
echo '<tr style="height:20px;line-height:20px;"><td>Rate Drop</td><td><span style="color:#8A4B08;">x200 </span></td>';


echo '</table></tbody>';
?>
</div>
<div id="status-footer"></div>

<div id="status-top"></div>
<div id="status-main">
</div>
<div id="status-footer"></div>
<div onclick="reloadstatistik()" class="refresh_btn">»<a style="cursor:pointer; color:#8A4B08; font-size:11px;">Actualizar</a></div>
</div></center>

trae personajes contador de j etc

 

No funcionará aunque él introduzca ése código en su web porque en el css no tiene esos id creados, 0 conocimiento php.

Rafa23Alzira, si todavía no pudieron ayudarte con esto para tu web, agregame a Skype (nick en la firma) y yo te lo soluciono en el momento.

Saludos.

Enlace para comentar
Compartir en otros sitios

  • 2 years later...

Unirse a la conversación

Puedes publicar ahora y registrarte más tarde. Si tienes una cuenta, regístrate para publicar con su cuenta.

Guest
Responder a este tema...

×   Has pegado contenido con formato .   Eliminar formato

  Only 75 emoji are allowed.

×   Tu enlace se ha incorporado automáticamente.   Mostrar un enlace en su lugar

×   Se ha restaurado el contenido anterior. .   Borrar editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recientemente navegando por este tema   0 miembros

    • No hay usuarios registrados visitando esta página.
×
×
  • Crear nuevo...