Mailinglisten-Archive |
versuchs mal damit
Gruß
Herbert
function tab_out($result) {
$anz=mysql_num_fields($result);
echo "<table width=90% border=10 cellpadding='2' cellspacing='2'>";
echo "<tr bgcolor=darkgoldenrod>";
for ($i=0;$i<$anz;$i++){
echo "<th>";
echo mysql_field_name($result,$i);
echo "</th>";
}
echo "</tr>";
echo "<tr>";
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
reset ($row);
while (list($key, $elem) = each ($row)) {
echo "<td bgcolor=darkgoldenrod><font size='-1'>$elem</font></td>";
}
echo "</tr>";
}
}
echo "</table>";
-----Ursprüngliche Nachricht-----
Von: Daniel Strathemeier, ywesee [mailto:dstrathemeier_(at)_ywesee.com]
Gesendet: Freitag, 15. September 2000 09:03
An: Mailingliste MySQL
Betreff: brauche hilfe bei mysql abfrage
Hallo Liste:
ich gerade das mir PHP aus einer mysql tabelle alle werte und die
dazugehörigen spaltenköpfe ausliest.
Das ergabniss muss so ausehen: &spaltenkopf1=Inhalt_vom_feld
thx
Dany
---
*** Weitere Infos zur Mailingliste und MySQL unter www.4t2.com/mysql
---
*** Weitere Infos zur Mailingliste und MySQL unter www.4t2.com/mysql
php::bar PHP Wiki - Listenarchive