20.12.2013, 19:13
Hi guys...
I have a question... how to show top 10 most rich players on my website... i know the basics from php, mysql, html and css, but only the BASICS.
Here is my code:
and after this shit i have:
and its showing just blank field...
I have a question... how to show top 10 most rich players on my website... i know the basics from php, mysql, html and css, but only the BASICS.
Here is my code:
PHP код:
<?php
include('../konekcija.php');
$proveripari = mysql_query("SELECT * FROM Igraci ORDER BY pCash LIMIT 10");
while ($row = mysql_fetch_array($proveripari))
{
$ime = $row["pProfil"];
$pari = $row["pCash"];
}
?>
Код HTML:
<table id='desnastrana-tabela'> <thead> <th>Бр</th><th>Име</th><th>Држ</th><th>Богатство</th> </thead> <tbody> <tr> <td>1</td> <td><?php$ime?></td> </tr> </tbody>