Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- mysql_connect("localhost","root","root") or DIE ("No se pudo establecer conexion con el servidor.");
- mysql_select_db("survival") or DIE ("No se pudo conectar a la base de datos.");
- $query = mysql_query("Select * from ranks Desco limit 20");
- $query2 = mysql_query("Select * from uconomy order by steamId Desc limit 20");
- echo "<font face='Comic Sans MS'>";
- echo "<table align='center' id='borde' background='../iconos/negro.jpg'>";
- echo "<tr><td width='150' align='center'></td><td width='150' align='center'></td><td width='150' align='center'></td><td width='150' align='center'></td></tr>";
- echo "<tr><td align='center'><font color='#FFCC00' size='3'>lastDisplayName</font></td><td align='center'><font color='#FFCC00' size='3'>Puntos</font></td><td align='center'><font color='#FFCC00' size='3'>steamId</font></td><td align='center'><font color='#FFCC00' size='3'>balance</font></td></tr>";
- echo "<tr><td colspan='5'><hr align='center' /></td></tr>";
- while ($a=mysql_fetch_array($query))
- {
- echo "<tr>
- <td align='center'><font color='#FFFFFF'>".$a['lastDisplayName']."</font></td>
- <td align='center'><font color='#FFFFFF'>".$a['points']."</font></td>
- <td align='center'><font color='#FFFFFF'>".$a['steamId']."</font></td>";
- while ($b=mysql_fetch_array($query2))
- echo "<td align='center'><font color='#FFFFFF'>".$b['balance']."</font></td></tr>";
- }
- echo "</font>";
- echo "</table>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement