echo $wtag == 4 && $akw == $akw2 ? "bgcolor='lightgray'" : ""; ?> >Do</th> <th <?php echo $wtag == 5 && $akw == $akw2 ? "bgcolor='lightgray'" : ""; ?> >Fr</th> <!-- <th>Handy</th> <th> </th>--> </tr> </thead> <tbody> <?php $db = new Database(); $con = $db->connect(); $duty_result = $db->select_anwesenheit($con, $akw); while ($row = $duty_result->fetch_assoc()) { if ($row['name'] == "Ebert" && $row['vorname'] == "Matthias") { continue; } echo "<tr>"; echo "<td>" . $row['vorname'] . " " . $row['name'] . " (" . $row['Klasse'] . ")</td>"; if ($wtag == 1 && $akw == $akw2) { echo "<td bgcolor='lightgray'>"; } else { echo "<td>"; } if ($row['dmon'] == 1 and $row['amon'] == 1) { echo "<span class='glyphicon glyphicon-ok' aria-hidden='true'></span></td>"; } else { echo " </td>";