cvs: pearweb /public_html package-search.php

From: Date: Wed, 22 May 2002 14:38:45 +0000
Subject: cvs: pearweb /public_html package-search.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4041@lists.php.net to get a copy of this message
mj Wed May 22 10:38:45 2002 EDT Modified files: /pearweb/public_html package-search.php Log: * Display package only once even if there are multiple maintainers. Index: pearweb/public_html/package-search.php diff -u pearweb/public_html/package-search.php:1.10 pearweb/public_html/package-search.php:1.11 --- pearweb/public_html/package-search.php:1.10 Fri Apr 26 05:23:17 2002 +++ pearweb/public_html/package-search.php Wed May 22 10:38:43 2002 @@ -94,7 +94,7 @@ // Compose query and execute $where = !empty($where) ? ' AND '.implode(' AND ', $where) : ''; - $sql = "select p.id, p.name, p.category, p.summary, m.handle from packages p, maintains m where p.id = m.package " . $where . " order by p.name"; + $sql = "select p.id, p.name, p.category, p.summary, m.handle from packages p, maintains m where p.id = m.package " . $where . " group by p.id order by p.name"; $result = $dbh->query($sql); // Print any results

« previous php.pear.cvs (#4041) next »