|
22.04.2005, 03:57
Ну вот я совместил два последних моих вопроса...
PHP код:
if ($newhome == 1) {
$sql3 = "SELECT cid, pid, title, hometext, UNIX_TIMESTAMP(date) as postdate FROM ".$prefix."_smallpages WHERE cid ='$cid' AND active = '1' ORDER BY pid DESC LIMIT $newhomenum";
$result3 = $db->sql_query($sql3);
if ($numrows = $db->sql_numrows($result3) > 0) {
echo "<b>"._NEWPAGES."</b><hr>";
while ($row = $db->sql_fetchrow($result3)) {
$p_pid = $row[pid];
$p_cid = $row[cid];
$p_title = $row[title];
$p_hometext = $row[hometext];
$p_hometext = stripslashes(check_html($p_hometext, nohtml));
$p_date = date("d/m/Y", $row["postdate"]);
echo "<img border=\"0\" src=\"modules/$module_name/images/page_pic.gif\" width=\"10\" height=\"14\">";
cat_new_home($p_cid);
echo "<b><a style=\"TEXT-DECORATION: none\" href=modules.php?name=$module_name&go=page&pid=$p_pid>$p_title</a></b><br><i>$p_hometext</i><br>"._SENDDATE.": $p_date<br><br>";
Видимо напрасно?
|
|