Probleme mit if Abfrage

toboli

Erfahrenes Mitglied
Hallo,

ich habe Probleme mit einer if Abfrage...

PHP:
<? if (empty($row->filepdf))&&(empty($row->fileword)) { ?>
<img src="../../img/blank.gif">
<? } elseif (empty($row->filepdf)) { ?>
<img src="../../img/word.gif">
<? } elseif empty($row->filedoc)) { ?>
<img src="../../img/adobe.gif" width="16" height="16"> 
<? } else { ?>
<img src="../../img/word.gif">&nbsp;<img src="../../img/adobe.gif"> 
<? } ?>

Erhalte nur einen Parse Error in Line 78 ? Habe ich irgendwas übersehen ?

Danke jetzt schon
 
if(empty($row->filepdf))&&(empty($row->fileword))

Schreibt man das auch nicht so?

if(empty($row->filepdf) && empty($row->fileword))
 
Zurück