Ok so i know that using and if inside an if is ok... but why shouldnt it work for having an if inside a while loop?
Anyway heres my dilema as the code below shows
PHP Code:
while($r = mysql_fetch_array($galquery1)){
$galentid=$r['attachemntid'];
$galtime=$r['dateline'];
$galentry=$r['filedata'];
$galentryname=$r['filename'];
$galuserid=$r['userid'];
$galentryvisible=$r['visible'];
if($galentry){
$imgshow = "<img src = $bburl/attachment.php?postid=$galentid ><br>";
$imgshow.= "<a href = $bburl/attachment.php?postid=$galentid>Full Image</a><br><br>";
echo ("$imgshow");
}
else
{
//DONT SHOW EMPTY ATTACHMENTS
}
whys that not working eh? seems to work ok till i add an if inside a while.... :dead: