On Tue, 13 Mar 2012 21:23:57 +0530, Gu®u sent:
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 t
On Tue, 13 Mar 2012 17:33:43 +0530, Gu®u sent:
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.
plugin->ListViewValue()=="")
{
echo '';
}
I tried the below code too considering may be the localhost is really dumb
and we need to tell each and every condition. But still its not working :(
$tweet = $search->plugin->ListViewValue();
$fb = $search->facebook->ListViewValue();
if($tweet=="" && $fb=="")
On Tue, Mar 13, 2012 at 4:53 PM, Gu®u 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 o
Hmm, what happens with the code I sent you? Just tested it on my end and
worked exactly as expected.
Try doing a
var_dump($search->plugin->ListViewValue(), $search->facebook->ListViewValue());
to make sure the data being returned is what's expected... you should be
getting string(0) "" returned f
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 faceb
>From looking at your code, the issue is that your if statements are
checking for the same criteria as your else statements, meaning that if the
string is empty ("") the if statements will be triggered, and since the if
statements are true, the elseif statement will not be. Or if the string
isn't
On Tue, Mar 13, 2012 at 3:06 PM, Gu®u wrote:
> The issue is both the images are echoing and no if else statement is
> working.
>
First of all, please bottom post on this (and probably any) mailing list.
You should perhaps provide what the contents of
$search->plugin->ListViewValue()=="" and
$sea
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 wrote:
> On Tue, Mar 13, 2012 at 1:03 PM, Gu®u wrote:
> > Hi,
> >
> > Please help me with this code. I have 2 different fields in mysql table.
> > What I want is if the fi
On Tue, Mar 13, 2012 at 1:03 PM, Gu®u 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
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.
plugin->ListViewValue()=="")
{
echo '';
}
if($search->facebook->ListViewValue()=="")
11 matches
Mail list logo