Re: Help with If else if

From: Date: Tue, 13 Mar 2012 16:14:10 +0000
Subject: Re: Help with If else if
References: 1 2 3 4 5 6  Groups: php.db 
Request: Send a blank email to php-db+get-48222@lists.php.net to get a copy of this message
On Tue, Mar 13, 2012 at 4:53 PM, Gu®u <nagendra802000@gmail.com> 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

« previous php.db (#48222) next »