Staff Page Problem

IPMB1

Member
Jan 1, 2013
249
20
The staff page isn't showing up the staffs! What should i do!?

- Screen Shot
 

Janzeer

Headmaster Of Hogwart's
Apr 30, 2012
522
47
Why is your staff's rank is going like 7,6,12,11? There is the organized staff.php so now all you have to do is just rank yourself in database to 7 and you should be able to see yourself.
Link:
 

IPMB1

Member
Jan 1, 2013
249
20
Why is your staff's rank is going like 7,6,12,11? There is the organized staff.php so now all you have to do is just rank yourself in database to 7 and you should be able to see yourself.
Link:
I already ranked myself to 7...
 

JayC

Well-Known Member
Aug 8, 2013
5,505
1,401
$getMembers=mysql_query("SELECT id,age,country,username,motto,look,position,online,age,country,last_online,owner_bio FROM users WHERE rank = '".$Ranks['id']."'");
Do not fucking code like this. What are we, 2?

$getMembers=mysql_query("SELECT * FROM users WHERE rank = '".$Ranks['id']."'");
the star grabs every column value then just say
$getMembers['column'];
 
    1. $getRanks = mysql_query("SELECT * FROM ranks WHERE id = 7 ORDER BY id DESC");

    2. while ($Ranks = mysql_fetch_assoc($getRanks))
    3. {
    4. echo ' <div class="habblet-container ">
    5. <div class="cbb clearfix blue ">
    6. <h2 class="title"><span style="float: left;">' . $Ranks['name'] .
Line 1) Put * instead of id,name

that might fix it. The reason is because the query already contains id,name and when you call to getRanks with the While loop it fucks up.
 

Users who are viewing this thread

Top