cvs: peclweb /public_html packages.php

From: Date: Sun, 21 Sep 2003 12:14:42 +0000
Subject: cvs: peclweb /public_html packages.php
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-460@lists.php.net to get a copy of this message
mj Sun Sep 21 08:14:42 2003 EDT Modified files: /peclweb/public_html packages.php Log: * Do not display the number of packages for PECL and PEAR, but only count the number of PECL packages. # I'm not sure if that is the best solution, but it seems to work for now. Index: peclweb/public_html/packages.php diff -u peclweb/public_html/packages.php:1.38 peclweb/public_html/packages.php:1.39 --- peclweb/public_html/packages.php:1.38 Sat Sep 20 18:09:26 2003 +++ peclweb/public_html/packages.php Sun Sep 21 08:14:42 2003 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: Richard Heyes | +----------------------------------------------------------------------+ - $Id: packages.php,v 1.38 2003/09/20 22:09:26 wez Exp $ + $Id: packages.php,v 1.39 2003/09/21 12:14:42 mj Exp $ */ /** @@ -92,7 +92,7 @@ // 1) Show categories of this level -$sth = $dbh->query("SELECT * from categories WHERE parent $category_where ORDER BY name"); +$sth = $dbh->query("SELECT c.*, COUNT(p.id) AS npackages FROM categories c LEFT JOIN packages p ON p.category = c.id WHERE p.package_type = 'pecl' AND c.parent $category_where GROUP BY c.id ORDER BY name"); $table = new HTML_Table('border="0" cellpadding="6" cellspacing="2" width="100%"'); $nrow = 0; $catdata = array();

« previous php.pecl.cvs (#460) next »