Учу php - нужны задачи

2.52K
.
И вообще правильно ли я сделал
.
I'm the Cult of Personality...
кажысь так
if ($total > $kmess) echo '<div class="topmenu">' . functions::display_pagination('index.php?', $start, $total, $kmess) . '</div>';
$res = mysql_query("SELECT * FROM `table1` join `table2` on `table1`.`user_id`=`table2`.`user_id` ORDER BY `table1`.`id` DESC LIMIT $start, $kmess");
while ($req = mysql_fetch_assoc($res)){
echo "$req[name] $req[text] $req[user_name]";
}
if ($total > $kmess) echo '<div class="topmenu">' . functions::display_pagination('index.php?', $start, $total, $kmess) . '</div>';
Всего: 182