Hallo!
Frage:
Ich möchte gerne eine Spalte von zeilen summieren die öfters als 1mal vorkommen.
Habe derzeit einen LAG

und komme nicht mehr raus aus dem Denkfehler...
<CODE>
if ($set==1){
$sql = "SELECT * FROM mtl GROUP BY Feld2";
$result = mysql_query($sql);
echo "<tr width=400>
<td width=100px class=ueberschrift>MTL-1</td>
<td width=50px class=ueberschrift>MTL-101</td>
<td width=50px class=ueberschrift>MTL-102</td>
</tr>";
while($row = mysql_fetch_row($result)){
echo "<tr width=400>
<td width=100px class=text bgcolor=#CCCCCC>$row[2]</td>
<td width=50px class=text bgcolor=#CCCCCC>$row[4]</td>
<td width=50px class=text bgcolor=#CCCCCC>$row[5]</td>
</tr>";
}
}
</CODE>
Ich weiß zwar das ich eine Schleife brauch aber im Moment fällt mir nix ein...
Danke im Vorraus!
lG mtrax