Thema: Arrayblind
Einzelnen Beitrag anzeigen
  #3  
Alt 30.06.2009, 15:08:33
tlang78 tlang78 ist offline
Anfänger
 
Registriert seit: May 2009
Alter: 44
Beiträge: 6
AW: Arrayblind

Hi Axel,

Bahnhof, Abfahrt 7:30 Uhr :)

Mein Problem ist, dass das 2. Array mit den Monaten inkl. Werte absolut nicht hinhaut.

1. Schleife (Auslesen der Projekte) ($b = Vortlaufende Nr. je Projekt)
Array bauen:
update[<?php echo $b;?>][update_id]
update[<?php echo $b;?>][update_honorar]
update[<?php echo $b;?>][update_auftrag]

2. Schleife (Auslesen der Monate je Projekt) (Es sind proProjekt jeweils 16 Monate gespeichert) ($c = Vortlaufende Nr. je Monat)
Innerhalb dieser Schleife wird dann die Tabelle Monate abgefragt.

update_monat[<?php echo $c;?>][update_id]
update_monat[<?php echo $c;?>][update_monat]
update_monat[<?php echo $c;?>][update_wert]

Ergenis des 1. Arrays

Array ( [0] => Array ( [update_id] => 85 [update_baustein] => Test [update_honorarprozent] => 0.00 [update_honorarwert] => 1000 [update_potential] => 6000 [update_angebot] => 5000 [update_auftrag] => 5000 [update_verloren] => 1000 [update_fakturiert] => 3000 ) [1] => Array ( [update_id] => 86 [update_baustein] => Test2 [update_honorarprozent] => 0.00 [update_honorarwert] => 500 [update_potential] => 9600 [update_angebot] => 8000 [update_auftrag] => 8000 [update_verloren] => 1600 [update_fakturiert] => 4000 ) )

Ergebnis des 2. Arrays

Array ( [0] => Array ( [0] => Array ( [update_id] => 85 [monat] => 0 [monat_id] => 1577 [monat_wert] => 10 ) [1] => Array ( [update_id] => 85 [monat] => 1 [monat_id] => 1578 [monat_wert] => 0 ) [2] => Array ( [update_id] => 85 [monat] => 2 [monat_id] => 1579 [monat_wert] => 0 ) [3] => Array ( [update_id] => 85 [monat] => 3 [monat_id] => 1580 [monat_wert] => 0 ) [4] => Array ( [update_id] => 85 [monat] => 4 [monat_id] => 1581 [monat_wert] => 0 ) [5] => Array ( [update_id] => 85 [monat] => 5 [monat_id] => 1582 [monat_wert] => 0 ) [6] => Array ( [update_id] => 85 [monat] => 6 [monat_id] => 1583 [monat_wert] => 0 ) [7] => Array ( [update_id] => 85 [monat] => 7 [monat_id] => 1584 [monat_wert] => 0 ) [8] => Array ( [update_id] => 85 [monat] => 8 [monat_id] => 1585 [monat_wert] => 0 ) [9] => Array ( [update_id] => 85 [monat] => 9 [monat_id] => 1586 [monat_wert] => 0 ) [10] => Array ( [update_id] => 85 [monat] => 10 [monat_id] => 1587 [monat_wert] => 0 ) [11] => Array ( [update_id] => 85 [monat] => 11 [monat_id] => 1588 [monat_wert] => 0 ) [12] => Array ( [update_id] => 85 [monat] => 12 [monat_id] => 1589 [monat_wert] => 0 ) [13] => Array ( [update_id] => 85 [monat] => 13 [monat_id] => 1590 [monat_wert] => 0 ) [14] => Array ( [update_id] => 85 [monat] => 14 [monat_id] => 1591 [monat_wert] => 0 ) [15] => Array ( [update_id] => 85 [monat] => 15 [monat_id] => 1592 [monat_wert] => 0 ) ) [1] => Array ( [0] => Array ( [update_id] => 86 [monat] => 0 [monat_id] => 1593 [monat_wert] => 0 ) [1] => Array ( [update_id] => 86 [monat] => 1 [monat_id] => 1594 [monat_wert] => 0 ) [2] => Array ( [update_id] => 86 [monat] => 2 [monat_id] => 1595 [monat_wert] => 0 ) [3] => Array ( [update_id] => 86 [monat] => 3 [monat_id] => 1596 [monat_wert] => 0 ) [4] => Array ( [update_id] => 86 [monat] => 4 [monat_id] => 1597 [monat_wert] => 0 ) [5] => Array ( [update_id] => 86 [monat] => 5 [monat_id] => 1598 [monat_wert] => 0 ) [6] => Array ( [update_id] => 86 [monat] => 6 [monat_id] => 1599 [monat_wert] => 0 ) [7] => Array ( [update_id] => 86 [monat] => 7 [monat_id] => 1600 [monat_wert] => 0 ) [8] => Array ( [update_id] => 86 [monat] => 8 [monat_id] => 1601 [monat_wert] => 0 ) [9] => Array ( [update_id] => 86 [monat] => 9 [monat_id] => 1602 [monat_wert] => 0 ) [10] => Array ( [update_id] => 86 [monat] => 10 [monat_id] => 1603 [monat_wert] => 0 ) [11] => Array ( [update_id] => 86 [monat] => 11 [monat_id] => 1604 [monat_wert] => 0 ) [12] => Array ( [update_id] => 86 [monat] => 12 [monat_id] => 1605 [monat_wert] => 0 ) [13] => Array ( [update_id] => 86 [monat] => 13 [monat_id] => 1606 [monat_wert] => 0 ) [14] => Array ( [update_id] => 86 [monat] => 14 [monat_id] => 1607 [monat_wert] => 0 ) [15] => Array ( [update_id] => 86 [monat] => 15 [monat_id] => 1608 [monat_wert] => 0 ) ) )

Soweit ich seh ist alles drin, aber wie bekomm ich das Array jetzt wieder aufgedröselt. Oder geht das irgendwie besser? Ich blick einfach nicht mehr durch.
Mit Zitat antworten