cvs: pearweb /public_html packages.php
| From: | Tal Peer | Date: | Fri, 26 Apr 2002 17:14:39 +0000 |
| Subject: | cvs: pearweb /public_html packages.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3570@lists.php.net to get a copy of this message | ||
tal Fri Apr 26 13:14:39 2002 EDT
Modified files:
/pearweb/public_html packages.php
Log:
Added 'total number of packages' text.
Index: pearweb/public_html/packages.php
diff -u pearweb/public_html/packages.php:1.25 pearweb/public_html/packages.php:1.26
--- pearweb/public_html/packages.php:1.25 Mon Feb 18 04:34:04 2002
+++ pearweb/public_html/packages.php Fri Apr 26 13:14:39 2002
@@ -74,6 +74,7 @@
false, null, DB_FETCHMODE_ASSOC, true);
$max_sub_links = 4;
+$totalpackages = 0;
while ($sth->fetchInto($row)) {
extract($row);
@@ -121,6 +122,8 @@
$data .= $sub_links.'<br />';
$catdata[] = $data;
+ $totalpackages += $npackages;
+
if($nrow++ % 2 == 1) {
$table->addRow(array($catdata[0], $catdata[1]));
$table->setCellAttributes($table->getRowCount()-1, 0,
'width="50%"');
@@ -180,6 +183,7 @@
echo $nrow != 0 ? $table->toHtml() : '';
$sth->free();
+echo "Total number of packages: " . $totalpackages;
response_footer();
?>