<html>
<head>
<title>SimCity 3D Exchange Index</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<?php
include "opendb.php";
$sql = "SELECT * FROM tbl_Files ";
$sql .= "ORDER BY filename ASC";
echo " <td>Filename</td>\n";
echo " <td>Description</td>\n";
for ($i = 0; $i < $rows; $i++) {
// since our script is very small, i'm not going to escape out to html mode here
echo " <td>$data->filename</td>\n";
echo " <td>$data->filetype</td>\n";
echo " <td>$data->filesize</td>\n";
echo " <td>( <a href='download.php?fileget=$data->id_files'>Download</a> )</td>\n";
}
?>
</body>
</html>