cvs: php-bugs-web / search.php
| From: | Sterling Hughes | Date: | Tue, 15 Oct 2002 14:40:09 +0000 |
| Subject: | cvs: php-bugs-web / search.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-13089@lists.php.net to get a copy of this message | ||
sterling Tue Oct 15 10:40:09 2002 EDT
Modified files:
/php-bugs-web search.php
Log:
take a gander at fixing the search.php problem
Index: php-bugs-web/search.php
diff -u php-bugs-web/search.php:1.30 php-bugs-web/search.php:1.31
--- php-bugs-web/search.php:1.30 Tue Aug 20 10:44:35 2002
+++ php-bugs-web/search.php Tue Oct 15 10:40:09 2002
@@ -110,9 +110,9 @@
$res = @mysql_query($query);
if (!$res) die(htmlspecialchars($query)."<br>".mysql_error());
- $total_rows = mysql_get_one("SELECT FOUND_ROWS()");
+ // $total_rows = mysql_get_one("SELECT FOUND_ROWS()");
- if (!$total_rows) {
+ if (!mysql_num_rows($res)) {
$errors[] = "No bugs with the specified criteria were found.";
}
else {