{% else-1 %}
(7 янв 2014, 22:12) (1/0) [1]
<?php
$loads_r = mysql_query(\"SELECT * FROM `loads` WHERE `ok` = 1 ORDER BY `time` DESC LIMIT 3\"*;
while ($load = mysql_fetch_assoc($loads_r)) {
$comm = mysql_result(mysql_query(\"SELECT COUNT(`id`) FROM `loads_comm` WHERE `id_loads` = \'$load[id]\'\"*, 0);

$subcat = mysql_fetch_assoc(mysql_query(\"SELECT * FROM `loads_subcats` WHERE `id` = \'$load[id_subcat]\'\"*);

echo \'<div class=\"row\">
<a href=\"?act=view&amp;id=\'.$load[\'id\'].\'\">\'.$load[\'name\'].\' (\'.size(filesize(\'files/\'.$subcat[\'path\'].\'/\'.$load[\'file\'])).\')\';

echo \'<br />
Комментарий: \'.$comm.\'<br />
</a></div>\';
}
?>
  • 1 из 1