Hallo Zusammen
ich habe eine Frage und komme nicht weiter :
in eine Wagenliste von z.B. 10 Wagen ( oder mehrere ), soll die erste 5 wagen in eine zweiter Spalte dargestellt :
WGN | Gewicht P | Gewicht G
111 | Leer | 20
222 | Leer | 20
333 | Leer | 20
444 | Leer | 20
555 | Leer | 20
666 | 20 | Leer
777 | 20 | Leer
888 | 20 | Leer
999 | 20 | Leer
100 | 20 | Leer
ich habe versucht mit LIMIT , aber das beenden meine Wiessen :-(
( das laufnr = ist quasi der Anzahl der Wagen )
$stat = $db->prepare("SELECT * FROM wali_item WHERE wali_nr = :wali_nr ORDER BY laufnr DESC ");
$stat->execute(array( ':wali_nr' => $_GET["wali_nr"] ));
$result = $stat->fetchAll();
foreach($result as $rowx) {
<td style="font-size:12px; text-align:center;"><strong><?php echo $rowx['laufnr']?></strong></td>
<td style="font-size:16px; text-align:center;"><strong><?php echo $rowx['wagennr']?></strong></td>
<?php if ( $rowx["wgnladung"] >= 0 AND $Gesamt_Ventil==5 ) { ?>
<td style="width:30px; text-align:center;"> <strong> <?php echo $rowx['brmgw']?> </strong></td>
<td style="width:30px; text-align:center;"> <strong> 3- </strong></td>
<?php } else if ( $rowx["wgnladung"] >= 0 AND $row_PG=="" OR $row_PG=="P" ) { ?>
<td style="width:30px; text-align:center;"><strong> <?php echo $rowx['brmgw']?></strong></td>
<td style="width:30px; text-align:center;"><strong> 1-</strong></td>
<?php } else if ($rowx["wgnladung"] >= 0 AND $row_PG=="" OR $row_PG=="G" ) { ?>
<td style="width:30px; text-align:center;"> <strong> 2- </strong></td>
<td style="width:30px; text-align:center;"> <strong> <?php echo $rowx['brmgw']?> </strong></td>
<?php } ?>
So habe ich bis jetzt alles Aufgebaut ... außen diese P-G , rest klapp
Wäre ich Dankbar für eine Tipp
oder einfach eine Link , wo ich selbst anschauen kann eine lösung !!
ich habe eine Frage und komme nicht weiter :
in eine Wagenliste von z.B. 10 Wagen ( oder mehrere ), soll die erste 5 wagen in eine zweiter Spalte dargestellt :
WGN | Gewicht P | Gewicht G
111 | Leer | 20
222 | Leer | 20
333 | Leer | 20
444 | Leer | 20
555 | Leer | 20
666 | 20 | Leer
777 | 20 | Leer
888 | 20 | Leer
999 | 20 | Leer
100 | 20 | Leer
ich habe versucht mit LIMIT , aber das beenden meine Wiessen :-(
( das laufnr = ist quasi der Anzahl der Wagen )
$stat = $db->prepare("SELECT * FROM wali_item WHERE wali_nr = :wali_nr ORDER BY laufnr DESC ");
$stat->execute(array( ':wali_nr' => $_GET["wali_nr"] ));
$result = $stat->fetchAll();
foreach($result as $rowx) {
<td style="font-size:12px; text-align:center;"><strong><?php echo $rowx['laufnr']?></strong></td>
<td style="font-size:16px; text-align:center;"><strong><?php echo $rowx['wagennr']?></strong></td>
<?php if ( $rowx["wgnladung"] >= 0 AND $Gesamt_Ventil==5 ) { ?>
<td style="width:30px; text-align:center;"> <strong> <?php echo $rowx['brmgw']?> </strong></td>
<td style="width:30px; text-align:center;"> <strong> 3- </strong></td>
<?php } else if ( $rowx["wgnladung"] >= 0 AND $row_PG=="" OR $row_PG=="P" ) { ?>
<td style="width:30px; text-align:center;"><strong> <?php echo $rowx['brmgw']?></strong></td>
<td style="width:30px; text-align:center;"><strong> 1-</strong></td>
<?php } else if ($rowx["wgnladung"] >= 0 AND $row_PG=="" OR $row_PG=="G" ) { ?>
<td style="width:30px; text-align:center;"> <strong> 2- </strong></td>
<td style="width:30px; text-align:center;"> <strong> <?php echo $rowx['brmgw']?> </strong></td>
<?php } ?>
So habe ich bis jetzt alles Aufgebaut ... außen diese P-G , rest klapp
Wäre ich Dankbar für eine Tipp
