Top rank - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Top rank (
/showthread.php?tid=97918)
Top rank -
coole210 - 17.09.2009
....
Re: Top rank -
Silent314 - 18.09.2009
EDIT: Assuming it is for a PHP website...
Код:
<?php
$query = mysql_query('SELECT * FROM `table` ORDER BY Money DESC LIMIT 10');
$i = 1;
while ($row = mysql_fetch_array($query, MYSQL_ASSOC))
{
echo ''.$i.'|'.$row['Name'].'|'.$row['Money'].'<br />';
$i++;
}
?>
You can create a table with HTML if you want. It's limited to the top ten so you can edit the LIMIT 10 to another number for a larger list.
Re: Top rank -
Hiitch - 18.09.2009
Ask Sirius[WS]
Re: Top rank -
Takumi.WS - 18.09.2009
Quote:
Originally Posted by [NaB
Hiitch - No srsly, Im a NaB ! ]
Ask Sirius[WS]
|
Hahahaha ! Nice one xD
Re: Top rank -
SanMarinoRP - 18.09.2009
i dont get it still
Re: Top rank -
coole210 - 18.09.2009
....
Re: Top rank -
RaFsTar - 18.09.2009
Quote:
Originally Posted by [NaB
Hiitch - No srsly, Im a NaB ! ]
Ask Sirius[WS]
|
ROFLMAO
Re: Top rank -
coole210 - 19.09.2009
....
Re: Top rank -
Calgon - 19.09.2009
Put the PHP script on your WEBSITE. Or learn how to actually run an SQL query.
Re: Top rank -
coole210 - 19.09.2009
....