  ПользовательПользователь №: 339 Сообщений: 34
 | необходимо что бы статьи выводились в две колонки по 5 в каждой, кому не трудно сделайте пожалуйста очень надо
Код | 1
| <?php
if (!defined('BLOCK_FILE')) {
Header("Location: ../index.php");
exit;
}
global $prefix, $db;
$strip = 25;
$result = $db->sql_query("SELECT pid, title FROM ".$prefix."_publications ORDER BY pid DESC LIMIT 10");
while(list($pid, $title) = $db->sql_fetchrow($result)) {
$linkstrip = cutstr($title, $strip);
$content .= "<table cellspacing=\"0\" cellpadding=\"1\"
title=\"$title\"></td><td><a href=\"index.php?name=Publications&op=page&pid=$pid\" title=\"$title\">$linkstrip</a></td></tr></table>";
}
?> |
|
|