diff options
author | Stephan Poehlsen <stephan@poehlsen.net> | 2005-11-24 20:48:54 +0000 |
---|---|---|
committer | Stephan Poehlsen <stephan@poehlsen.net> | 2005-11-24 20:48:54 +0000 |
commit | 6192585caa1cb6db9458ce5a8d9181586e047da2 (patch) | |
tree | 19dedb28e4c1ec3caec6c62284291e648bbcabfc | |
parent | 4101d825ca9e439e2f7f9c46efa3338ecf344ac7 (diff) |
bug: next page
git-svn-id: file:///home/lennart/svn/public/sse/trunk@56 5fbabb74-0606-0410-a5e4-b5cc6a42724e
-rw-r--r-- | www/index.php | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/www/index.php b/www/index.php index 81ee0b4..062e79b 100644 --- a/www/index.php +++ b/www/index.php @@ -144,9 +144,6 @@ while ($q) { $total = 0; while (isset($sql) and $sql) { - // use LIMIT ==> two queries: 1. total count, 2. results - // or mysql query cache ==> one query (dump data) - $res = mysql_query($sql); if ($res === false) { echo('<p class="error">'.mysql_errno().': '.mysql_error()."<br />\n".$sql."</p>\n"); @@ -183,14 +180,7 @@ if ($total) { echo('<p>Results: '.$total."</p>\n". '<ul class="results">'."\n"); - $i = 0; while ($r = mysql_fetch_array($res)) { - //var_dump($r); exit; - if ($i == $start+$num) break; - $i++; - if ($i <= $start) continue; - - $r['keywords_cnt'] = intval($r['keywords_cnt']); if ($r['keywords_cnt'] < 2) $r['keywords_cnt'] = ''; echo('<li>'.htmlentities($r['package_name']).': '. |