Letzte Eins&aumltze


query($sql1)->fetch(); $i = $anzahl['anzahl']; $sql2 = "SELECT COUNT(date1) AS anzahl2 FROM j08ep_eiko_einsatzberichte WHERE date1 LIKE '$datum2%' AND state = '1'"; $anzahl2 = $pdo->query($sql2)->fetch(); $j = $anzahl2['anzahl2']; $sql = "SELECT * FROM j08ep_eiko_einsatzberichte WHERE date1 LIKE '$datum2%' OR date1 LIKE '$datum1%' AND state = '1' ORDER BY date1 DESC LIMIT 8"; foreach ($pdo->query($sql) as $row) { if (substr($row['date1'],0,4)==$datum1) { if ($row['tickerkat']=="28"){ $farbe = "brand"; $zahl = $i--; $date = new DateTime($row['date1']); } if ($row['tickerkat']=="29"){ $farbe = "thl"; $zahl = $i--; $date = new DateTime($row['date1']); } if ($row['tickerkat']=="30"){ $farbe = "frp"; $zahl = $i--; $date = new DateTime($row['date1']); } if ($row['tickerkat']=="31"){ $farbe = "son"; $zahl = $i--; $date = new DateTime($row['date1']); } } else { if ($row['tickerkat']=="28"){ $farbe = "brand"; $zahl = $j--; $date = new DateTime($row['date1']); } if ($row['tickerkat']=="29"){ $farbe = "thl"; $zahl = $j--; $date = new DateTime($row['date1']); } if ($row['tickerkat']=="30"){ $farbe = "frp"; $zahl = $j--; $date = new DateTime($row['date1']); } if ($row['tickerkat']=="31"){ $farbe = "son"; $zahl = $j--; $date = new DateTime($row['date1']); } } $bild = str_replace(".png", "-n.png", $row['image']); echo '
Einsatznummer: '.$zahl.'
 
Stichwort: '.$row['summary'].'
'.$date->format('d.m.y H:i').'
'; } ?>
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.