The issue is both the images are echoing and no if else statement is working. On Tue, Mar 13, 2012 at 7:22 PM, Matijn Woudt <tijnema@xxxxxxxxx> wrote: > On Tue, Mar 13, 2012 at 1:03 PM, Gu®u <nagendra802000@xxxxxxxxx> wrote: > > Hi, > > > > Please help me with this code. I have 2 different fields in mysql table. > > What I want is if the field is empty don't show the image. Please look at > > the code below. > > I have looked at it. > > Maybe you should tell what is wrong, what it outputs currently, and > what it should output. Or perhaps, which errors you get if any? > > - Matijn > -- *Best, * *Gu®u*