cvs: pearweb /public_html package-search.php

From: Date: Thu, 24 Jan 2002 15:39:07 +0000
Subject: cvs: pearweb /public_html package-search.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-2083@lists.php.net to get a copy of this message
mj Thu Jan 24 10:39:07 2002 EDT Modified files: /pearweb/public_html package-search.php Log: * Put search result in borderbox. Index: pearweb/public_html/package-search.php diff -u pearweb/public_html/package-search.php:1.5 pearweb/public_html/package-search.php:1.6 --- pearweb/public_html/package-search.php:1.5 Thu Jan 24 10:33:43 2002 +++ pearweb/public_html/package-search.php Thu Jan 24 10:39:07 2002 @@ -100,16 +100,20 @@ $result = $dbh->query($sql); // Print any results - if($result->numRows() > 0) { - echo '<p><strong>Results:</strong></p>'; + if($result->numRows() > 0) { + echo "<br /><br />\n"; + $bb = new Borderbox("Search results (" . $result->numRows() . ")"); + while($result->fetchInto($row)) { echo ' <dt><a href="pkginfo.php?pacid='.$row['id'].'">'.$row['name'].'</a> (<a href="/account-info.php?handle='.$row['handle'].'">'.$row['handle'].'</a>)</dt>'; echo ' <dd>'.$row['summary'].'</dd>'; echo ' <br /><br />'; } + + $bb->end(); } else { echo '<p><strong>No results found</strong></p>'; - } + } } response_footer();

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