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.
<?php
if($search->plugin->ListViewValue()=="")
{
echo '<a href="'.$search->facebook->ListViewValue().'"><img
src="images/facebook.gif" width="22" height="23"/></a></a>';
}
if($search->facebook->ListViewValue()=="")
{
echo '<a href="'.$search->plugin->ListViewValue().'"><img
src="images/twitter.gif" width="22" height="23"/></a></a>';
}
else if($search->plugin->ListViewValue()=="" &&
$search->facebook->ListViewValue()=="")
{
echo "";
}
else
{
echo '<a href="'.$search->plugin->ListViewValue().'"><img
src="images/twitter.gif" width="22" height="23"/></a></a>'.'<a
href="'.$search->facebook->ListViewValue().'"><img
src="images/facebook.gif" width="22" height="23"/></a></a>';
}
?>
--
*Best,
*
*Gu®u*