138 |
print "§ion=$section\"><br><br><div align=\"center\"><b>nästa sida</b></div></a>"; |
print "§ion=$section\"><br><br><div align=\"center\"><b>nästa sida</b></div></a>"; |
139 |
} |
} |
140 |
} elseif ($type == "comments") { |
} elseif ($type == "comments") { |
141 |
$result = mysql_query("SELECT tid, sid, subject, date, name FROM comments WHERE (subject LIKE '%$query%' OR comment LIKE '%$query%') ORDER BY date DESC LIMIT $min,$offset"); |
$result = mysql_query("SELECT tid, sid, typ, subject, date, name " |
142 |
|
. "FROM comments WHERE (subject LIKE '%$query%' OR comment LIKE '%$query%') " |
143 |
|
. "ORDER BY date DESC LIMIT $min,$offset"); |
144 |
$nrows = mysql_num_rows($result); |
$nrows = mysql_num_rows($result); |
145 |
$x = 0; |
$x = 0; |
146 |
echo "<table width=\"99%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n"; |
echo "<table width=\"99%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n"; |
147 |
if ($nrows > 0) { |
if ($nrows > 0) { |
148 |
while(list($tid, $sid, $subject, $date, $name) = mysql_fetch_row($result)) { |
while(list($tid, $sid, $typ, $subject, $date, $name) = mysql_fetch_row($result)) { |
149 |
$furl = "article.php?thold=-1&mode=flat&order=1&sid=$sid#$tid"; |
$furl = "comments.php?thold=-1&mode=flat&order=1&sid=$sid&typ=$typ#$tid"; |
150 |
if(!$name) { |
if(!$name) { |
151 |
$name = "$anonymous"; |
$name = "$anonymous"; |
152 |
} |
} |