RNDTV
Fanat_FCB,
  1. $req_lib = mysql_query("SELECT * FROM `lib` WHERE `type`='bk' ORDER BY `time` DESC LIMIT 5");
  2. $i = 0;
  3.  
  4. echo '<div class="phdr"><center><b>' . $lng_lib['articles'] . '</b></center></div>';
  5. while ($lib = mysql_fetch_assoc($req_lib)) {
  6. $komm = mysql_num_rows (mysql_query("select `id` from`lib` where type = 'komm' and refid = '" . $lib['id'] . "'"));
  7. echo '<div class="menu">'.
  8. '<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 />';
  9. echo htmlentities($lib['announce'], ENT_QUOTES, 'UTF-8');
  10.  
  11. echo'<br /><b>' . $lng['author'] . ': [' . $lib['avtor'] . '] | ' . $lng_lib['reads'] . ': (' . $lib['count'] . ')</b></div>';
  12. ++ $i;
  13. }




MANABU KOD