phpbar.de logo

Mailinglisten-Archive

[php] Schleife und Komma

[php] Schleife und Komma

Cyrill Schumacher php_(at)_phpcenter.de
Sat, 15 Dec 2001 10:09:53 +0100


$data = array();
 $result = mysql_query("SELECT  ..... );
 while ($myrows = mysql_fetch_row($result)) {
    $data[] = $myrows[1]; 
 }

echo implode(',',$data)."\n";

kiri


php::bar PHP Wiki   -   Listenarchive