Re: Help with If else if

Matijn Woudt <[email protected]>
Newsgroups gmane.comp.php.database
Message-ID <CAC_gtuOu7A_Z6txVO3k5xeA8RivTZ=j8XdvW0L02TF8A0=zcoA@mail.gmail.com>
On Tue, Mar 13, 2012 at 4:53 PM, Gu®u <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.