/[gnuheter]/gnuheter/search.php
ViewVC logotype

Diff of /gnuheter/search.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by metaur, Sun Nov 3 01:50:03 2002 UTC revision 1.10 by pawal, Sun Dec 1 00:34:11 2002 UTC
# Line 138  if ($type == "stories" or !$type) { Line 138  if ($type == "stories" or !$type) {
138                  print "&section=$section\"><br><br><div align=\"center\"><b>nästa sida</b></div></a>";                  print "&section=$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&amp;mode=flat&amp;order=1&amp;sid=$sid&amp;typ=$typ#$tid";
150                          if(!$name) {                          if(!$name) {
151                                  $name = "$anonymous";                                  $name = "$anonymous";
152                          }                          }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26