Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [xml/xsl]sumowanie pozycji, sumowanie
ggrek
post
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 1.12.2011

Ostrzeżenie: (0%)
-----


Witam,

  1. <?xml version="1.0"?>
  2. <things>
  3. <thing>
  4. <name>one</name>
  5. <description>one</description>
  6. <numbertoadd>1.2</numbertoadd>
  7. <number>2</number>
  8. </thing>
  9. <thing>
  10. <name>two</name>
  11. <description>two</description>
  12. <numbertoadd>2.3</numbertoadd>
  13. <number>2</number>
  14. </thing>
  15. <thing>
  16. <name>three</name>
  17. <description>three</description>
  18. <numbertoadd>3.2</numbertoadd>
  19. <number>2</number>
  20. </thing>
  21. </things>
  22.  


Jak mogę sumować (funkcja sum() )pozycje ale w taki sposób ze najpierw wybisuje pozycje [numbertoadd * number] a pózniej dopiero sumuje.

Ten post edytował ggrek 15.12.2011, 11:27:05
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 01:09