Parašė Kelmas· 2008 Gru. 9 16:12:37
#1
Kiek supratau taip:
<?
include("cfg.php");
$get = mysql_query("SELECT * FROM turnyras ORDER BY ID DESC") or die (mysql_error());
echo"
<table class='len' align='center' border='0'>
<tr>
<td class='len'>ID</td>
<td class='len'>Nick</td>
</tr>
";
while ( $row = mysql_fetch_assoc($get) )
{
echo "<tr>";
echo "<td class='len'>" . $row['ID'] . "</td>";
echo "<td class='len'>" . $row['nick'] . "</td>";
echo "</tr>";
}
echo "</table>";
?>
Redagavo Kelmas· 2008 Gru. 9 16:12:45