Hallo,

ich habe es damit gelöst:


HTML-Code:
<? $nickpage    = mysql_fetch_array(db_query("SELECT * FROM ".$db_prefix."_nickpage WHERE uid=".$_SESSION['uid']."")); ?>
<img src="<? if ($nickpage['ava'] == '') {echo 'images/noava.gif';} else { echo $nickpage['ava'];}?>" class="img-circle"/>