I am displaying an element on a page depending on whether the element 'SSContact' is empty or not...
<?php if(!empty($row_Diolist['SS
Contact'])
): ?>
What I need to do is show that contact box if there is a a value in either SSContact, SSPhone or SSEmail so along the lines of...
<?php if(!empty($row_Diolist['SS
Contact'])
): OR if(!empty($row_Diolist['SS
phone'])):
OR if(!empty($row_Diolist['SS
email'])):
?>
I know the code above is wrong but any ideas on how it should be?
Are you thinking of displaying whatever information is available? For example, would you display the SSContact and SSemail if that is all the data you have? If so, a little more logic might be in order. Pidgin example:
if (SSContact)
{
display SSContact
if (SSphone) display SSphone
if (SSemail) display SSemail
}