$res = mysql_query("select path from file where id=$id");
if (!list($page)=mysql_fetch_row($res)) {
echo "file $id not found";
include("footer.inc.php");
exit;
}
$res = mysql_query("select path from file where id=$id");
if (!list($page)=mysql_fetch_row($res)) {
echo "file $id not found";
include("footer.inc.php");
exit;
}