Hi again . I have anoher problem : I want to make a page to display the download categories and last time those categories were updated. I coded this
but i get a strange date .Here is the printscreen.
in atachament must display updated, but i forgot to change:P
PHP Code:
$cat = intval($_GET['cat']);
$zap = mysql_query("SELECT * FROM `download` WHERE `refid` = '$cat' ORDER BY `type` ASC, `time` Desc, `name` ASC LIMIT " . $start . "," . $kmess);
while ($zap2 = mysql_fetch_array($zap)) {
echo '<a href="index.php?cat=' . $zap2['id'] . '">' . $zap2['text'] . '</a>';
$file = mysql_query("SELECT COUNT(*) FROM `download` WHERE `type` = 'file' AND `adres` LIKE '" . ($zap2['adres'] . '/' . $zap2['name']) . "%' AND `time` > '" . $old . "'");
$file1 = mysql_query("select * from `download` where type = 'file' and id = '" . $file . "';");
$file2 = mysql_num_rows($file1);
$adrfile = mysql_fetch_array($file1);
$filtime = filemtime("$adrfile[name]");
$filtime = date("d.m.Y", $filtime);
echo 'last update :</b> ' . $filtime . '<br/>';
in atachament must display updated, but i forgot to change:P
Comment