Register for your free account! | Forgot your password?

You last visited: Today at 00:24

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HELP] Top Pets page

Discussion on [HELP] Top Pets page within the EO PServer Hosting forum part of the Eudemons Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2009
Posts: 365
Received Thanks: 476
[HELP] Top Pets page

i have my website up and in top legions, players, families the staff do not show but in top pets they do it is supposed to be set to where the staffs pets dont show but it's not working can anyone tell me how to fix it or upload a toppets.php that doesn't show them please, as i dont think it is fair to my players.
this is what my top pets.php looks like.
<?php
include('definitions.php');


?>
<h2><span></span></h2>
<br /><br />
<center><div align="center">
<form action='index.php?id=pets' method=POST>
Pet Type
<select name="type" onChange="this.form.submit()">
<option value="top10">Please choose a catagory</option>
<?php
$pKeys = array_keys($eudemon);

foreach ($pKeys as $pId) {
$pSelected = "";
if ($pId == $_POST['type']) { $pSelected = "selected"; };
echo "<option value='" . $pId . "'" . $pSelected . ">" . $eudemon[$pId] . "</option>";
}
unset($pId);
?>
</select>
</font>
</form>
</div>




<br><p>
<head>
</font><span class="style2">
<table width="217" height="137" border="0">
<tr>
<td>Rank</td>
<td>Owner</td>
<td>Name</td>
<td>Type</td>
<td>Level</td>
<td>Stars</td>
<td>Reborns</td>
</tr>
<?php


$pId = $_POST['type'];
$pId = $pId[0] . $pId[1];
switch($pId) {
case "top10":
$sQuery = mysql_query("SELECT * FROM cq_eudemon WHERE (`ori_owner_name` NOT LIKE '%[PM]%' AND `ori_owner_name` NOT LIKE '%[GM]%' ORDER BY star_lev DESC LIMIT 25");
default:
$sQuery = mysql_query("SELECT * FROM cq_eudemon WHERE (`ori_owner_name` NOT LIKE '%[PM]%' AND `ori_owner_name` NOT LIKE '%[GM]%' AND `item_type` LIKE '1071$pId%' OR `item_type` LIKE '1079$pId%' OR `item_type` LIKE '1081$pId%') ORDER BY star_lev DESC LIMIT 25");
}



$rank = 1;
while ($pet = mysql_fetch_assoc($sQuery)) {
$star_lev = $pet['star_lev'];
$stars = "";

$item_type = $pet['item_type'];
$type = "";


if (strlen($star_lev) == 4) {
$stars = $star_lev[0] . $star_lev[1];
} else if (strlen($star_lev) == 5) {
$stars = $star_lev[0] . $star_lev[1] . $star_lev[2];
} else {
$stars = 0;
}

$type = $eudemon[$item_type[strlen($item_type)-3] . $item_type[strlen($item_type)-2] . "0"];
$sql = "SELECT * FROM cq_user WHERE id='".$pet['player_id']."'";
$query = mysql_query($sql) or die(mysql_error());
$row1 = mysql_fetch_object($query);
$curowner = htmlspecialchars($row1->name);

echo "<tr>";
echo "<td>" . $rank . "</td>";
echo "<td>" . $curowner . "</td>";
echo "<td>" . $pet['name'] . "</td>";
echo "<td>" . $type . "</td>";
echo "<td>" . $pet['level'] . "</td>";
echo "<td>" . $stars . "</td>";
echo "<td>" . $pet['reborn_times'] . "</td>";
echo "</tr>";
$rank++;
}
?>
</table>

ty all in advance
louise32 is offline  
Reply


Similar Threads Similar Threads
[Demon pets Online] Newest database, God Maps, Customs, New Pets, Check us Out.
07/17/2010 - EO PServer Hosting - 15 Replies
http://i45.tinypic.com/2j26zio.png Server Rates: • Exp Rate: Mediun • Drop Gold: Medium • Drop 2700 card: Medium • Drop 270 card: Medium • Drop Bags: Medium
[HELP]MY PETS BECOME ANOTHER PETS AFTER USE THUNDER JUICE
06/28/2010 - EO PServer Hosting - 18 Replies
HELLO please help me i am using db revo i am having this problems when i use thunder juice to my pets when i click evolve it turn into anopther pets how to solve this please..i already use louise fix thunder but nothing ahppened:handsdown::handsdown::handsdown::handsdow n::handsdown:
WTS Rare Pets and Basic Pets on Lydian
02/11/2010 - Rappelz Trading - 5 Replies
I am selling all my pets i have in game at the server of Lydian. full ob Angel and Kenta low lvl Naga low lvl Harpy , Hawk and Sala I am selling the Pets only for CASH ! I can show screenshots or i can show you the pets in Game too ! Dont accept trading or ppl who gave me offer and pm me back in more then 7 days again !
[HELP] pets disappear , pets name , skills , others
01/30/2009 - EO PServer Hosting - 9 Replies
hi guyz hope u can help me with those 1 - someone in my server pet's has disappear from warehouse and inventory and knights table , but they still exist in the leg totem , and cq_eudemon , i've checked the owner_id and stuff all correct whats wrong ? 2 - pets in my server have Chinese names or smthn strange how can i make them English back again ? 3 - i know that i've asked this thing maaaaaaaaaaaany times , but so far no answer can somone plz tell me how to fix or at least tell me...
New Way to Dupe Pets / Call out Multiple Pets
04/21/2006 - General Gaming Discussion - 0 Replies
*TESTCENTER*do this before the blue frog disappears and stops giving out mounts/vehicles. 1. go to to the blue frog, go to vehicles/mounts. 2. pick ur mount, it will come out 3. wait till it disappears 4. once it disappears call it out, and mount it



All times are GMT +1. The time now is 00:25.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.