Jump to content

Little Questions Please Help


porko2004

Recommended Posts

<?php			
require('config.php');

$rank = mysql_query("SELECT
                c.name as CharName, c.level as Level, c.mate as Spouse, f.name as GuildName
                FROM
                cq_user as c
              LEFT JOIN                
                cq_synattr as g                
              ON
                (c.id = g.id) 
             LEFT JOIN                
               
                cq_syndicate as f
              ON
                (g.syn_id = f.id)  
              WHERE
               c.profession = 15 OR
	    c.profession = 14 OR
  		    c.profession = 13 OR
	    c.profession = 12 OR
	    c.profession = 11 OR
	    c.profession = 10
            
              ORDER BY
                c.level  (I wanna add here if person same level it looks at money)
              DESC
              LIMIT 0,15
              ;");


$i=1;
echo "<table border='0' bgcolor='#FFDC74'> ";
echo "<font size='9'><tr> <th><center>; Rank</center></th> <th><center>Character Name  </center></th> <th>Level </th> <th>Spouse p;  </th> <th>  Guild Name </th> </tr>";
while($row = mysql_fetch_array($rank)){

echo '<tr style="background-color:#FFF2BD;"><td><div align="center" bgcolor="#FFFF00" >'.$i.'</td>
    <td><div align="center">'.$row['CharName'].'</td>
    <td><div align="center">'.$row['Level'].'</td>
    <td><div align="center">'.$row['Spouse'].'</td>
    <td><div align="center">'.$row['GuildName'].'</td>
  </tr> ';
  $i=$i+1;
}


?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

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.