$req_lib = mysql_query("SELECT * FROM `lib` WHERE `type`='bk' ORDER BY `time` DESC LIMIT 5");$i = 0; echo '<div class="phdr"><center><b>' . $lng_lib['articles'] . '</b></center></div>'; while ($lib = mysql_fetch_assoc($req_lib)) {$komm = mysql_num_rows (mysql_query("select `id` from`lib` where type = 'komm' and refid = '" . $lib['id'] . "'"));echo '<div class="menu">'.'<a href="/library/index.php?id=' . $lib['id'] . '">' . $lib['name'] . '</a> <div class="rio">' . functions::display_date($lib['time']) . '</div><span class="red"> NEW</span><br />';echo htmlentities($lib['announce'], ENT_QUOTES, 'UTF-8'); echo'<br /><b>' . $lng['author'] . ': [' . $lib['avtor'] . '] | ' . $lng_lib['reads'] . ': (' . $lib['count'] . ')</b></div>';++ $i;}
« Mavzuga qaytish