Guten Abend zusammen
Warum erhalte ich keine else Meldung wenn die if Abfrage nicht erfüllt ist?
Besten Dank für die Hilfe
Gruss
Steven
Warum erhalte ich keine else Meldung wenn die if Abfrage nicht erfüllt ist?
PHP-Code:
<tr class="item<?php echo $entry['class'] ? ' '.$entry['class'] : ''; ?>">
<?php if($entry['data']): ?>
<td colspan="3"><?php echo $entry['data']['datum']['value']; ?></td>
<td colspan="3"><?php echo $entry['data']['kunde']['value']; ?></td>
<td colspan="3"><?php echo $entry['data']['anlass']['value']; ?></td>
<td colspan="3"><?php echo $entry['linkEdit']; ?></td>
<?php else: ?>
<td colspan="3">Kein Termin vorhanden!</td>
<?php endif; ?>
</tr>Gruss
Steven
Kommentar