Dear Sir (venom) Check it,

Тема закрыта
131
.
Dear Sir how i can use tow (2) div class in this code ?

<?php
$limit = '5'; // количество тем
$req_t = mysql_query("SELECT * FROM `forum` WHERE `type`='t' ORDER BY `time` DESC LIMIT $limit "); // запрос
while($res_t = mysql_fetch_array($req_t)){
echo '<div class="list1">';
$f_t = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type`='m' AND `refid`='" . $res_t['id'] . "'" . ($rights >= 7 ? '' : " AND `close` != '1'")), 0);
$f_ep = ceil($f_t /$kmess);
echo '<a href="/forum/?id='.$res_t['id'].'">'.$res_t['text'].'</a> ('.$f_t.')';
if ($f_ep > 1) {
echo ' <a href="' . $home . '/forum/index.php?id=' . $res_t['id'] . '&amp;page=' . $f_ep . '">&#160;&gt;&gt;</a>';
}
echo '</div>';
}
?>

how i can change <div class="list1"> to in <div class="list2">' : '<div class="list1">';
.
venom
Люди берегите воду - пейте пиво...
CODE (+/-)
Всего: 2