Einzelnen Beitrag anzeigen
  #3 (permalink)  
Alt 11-04-2006, 00:24
felixxx
 Newbie
Links : Onlinestatus : felixxx ist offline
Registriert seit: Apr 2006
Ort: Frankreich
Beiträge: 27
felixxx ist zur Zeit noch ein unbeschriebenes Blatt
Standard

Das geht aber eleganter (falls Deine Datenbank Subselects unterstützt):

PHP-Code:
$sql="SELECT SUM(preis) FROM (SELECT preis FROM sendungen WHERE kunde='$kunde' LIMIT 0,10) as result"
__________________
--
...with www.zeec.de, the addictive mobile media blog by:

EYETRIBE GmbH i.Gr.
http://www.eyetribe.com
Mit Zitat antworten