Her er min kode:
<?PHP
include 'config.php';
$sql_events = mysql_query("SELECT * FROM tutorials ORDER BY id") or die (mysql_error());
while ($row = mysql_fetch_array($sql_events)) {
$id = $row["id"];
$title = $row["title"];
$author = $row["author"];
$avatar = $row["avatar"];
$description = $row["description"];
$date = $row['date'];
echo ("
<table width=\\"400\\" align=\\"center\\" cellpadding=\\"2\\" cellspacing=\\"2\\">
<tr>
<td width=\\"50%\\" align=\\"center\\"><font size=\\"2\\" face=\\"Tahoma\\"><b>$title</b></font></td>
<td align=\\"left\\" valign=\\"top\\"></td>
</tr>
<tr>
<td align=\\"center\\" width=\\"200\\"><b>Created by:</b> <a href=\\"index.php?page=Members&user=$author\\">$author</a></td>
<td align=\\"left\\" valign=\\"top\\"><b>Added on:</b> $date</td>
</tr>
<tr>
<td width=\\"50%\\" align=\\"center\\"><a href=\\"index.php?page=Tutorial&id=". $id ."\\"><img src=\\"http://www.$avatar\\" width=\\"160\\" height=\\"100\\" border=\\"0\\"></a></td>
<td align=\\"left\\" valign=\\"top\\"><b>Description:</b><br>$description<br><br>
<a href=\\"index.php?page=Tutorial&id=". $id ."\\"><img src=\\"images/view.gif\\" border=\\"0\\"></a></td>
</tr>
</table><br>
");
}
?>
det er så meningen at den skal vise den med det sørste ID først
men har jeg aldrig fået lært hvordan man gør