On Tue, Mar 13, 2012 at 4:53 PM, Gu®u <nagendra802000@xxxxxxxxx> wrote: > No Michael, your code is also not working. What you have understood is > correct. let me explain it to others too. > > If variable twitter and facebook are empty don't echo anything, > > if variable twitter has a value and facebook is empty echo out only twitter, > > if variable twitter has no value and facebook has a value echo out facebook > only, > > and finally if both has values echo out both. > > Basically I want to echo out only if there is some value in the database. > But in my case both the images are echoing out. > That's exactly what my code does too, except it's a bit simpler. If mine isn't working too, then your input is probably different, try a var_dump on the ListViewValue() items. - Matijn -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php