Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while( $row = sqlsrv_fetch_array( $stmt, SQLSRV_FETCH_ASSOC) ) {
- echo $row['price'];
- }
- // wird geändert in
- $gesamt = 0;
- while( $row = sqlsrv_fetch_array( $stmt, SQLSRV_FETCH_ASSOC) ) {
- $gesamt += $row['price'];
- echo $row['price'];
- }
- echo 'Gesamtpreis: ' . $gesamt;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement