phpbar.de logo

Mailinglisten-Archive

[php] =?ISO-8859-1?B?UmU6IFtwaHBdIFNjaGxlY2h0IGZvcm11bGllcnRlIEZyYWdlIGVpbmVz?= =?ISO-8859-1?B?IGVudG5lcnZ0ZW4gQW5m5G5nZXJz?= =?ISO-8859-1?B?IGVudG5lcnZ0ZW4gQW5m5G5nZXJz?=

[php] =?ISO-8859-1?B?UmU6IFtwaHBdIFNjaGxlY2h0IGZvcm11bGllcnRlIEZyYWdlIGVpbmVz?= =?ISO-8859-1?B?IGVudG5lcnZ0ZW4gQW5m5G5nZXJz?= =?ISO-8859-1?B?IGVudG5lcnZ0ZW4gQW5m5G5nZXJz?=

W. Palatin news_(at)_palatin.at
Tue, 22 Aug 2000 11:00:43 +0200


ppcd> <?php
ppcd> $category = mysql_query("select distinct category from products");
ppcd> while(list($cat) = mysql_fetch_row($category)) {
ppcd> $cate=urlencode($cat);
ppcd> echo "<tr><td><a href=\"view.php3?category=$cate\">$cat</a>";
ppcd> $result = mysql_query("select pid from products where (category =
'$cat')");?>><font face="Tahoma" size="1" color="#CC0000"><b>
ppcd> <?$num_results = mysql_num_rows($result);
ppcd>  echo "($num_results)</td></tr>";
ppcd> } ?>>


line 5 (von obigen auszug) ersetzen:
echo "<tr><td>><font face=\"Tahoma\" size=\"1\" color=\"#CC0000\"><a
href=\"view.php3?category=$cate\">$cat</a></font>";


mfg
--
Willibald Palatin
Entwicklung

yline web access services ag 
Richard Strauss-Straße 10
A-1230 Wien
fon: +43-1-919 99 -242
fax: +43-1-919 99 -119 
eMail: willibald.palatin_(at)_yline.at <mailto:willibald.palatin_(at)_yline.at>




php::bar PHP Wiki   -   Listenarchive