Link to home
Start Free TrialLog in
Avatar of BrighteyesDesign
BrighteyesDesignFlag for Afghanistan

asked on

Show content based on two conditions...

Currently i'm hiding/showing content based on if the image column is empty or not. How can I add a another condition to this so this particular section won't show if 'image' is empty or 'image' = 'no'?

<?php if(!empty($row_Diolist['image'])): ?>
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Maybe try something like this:

<?php if ( (!empty($row_Diolist['image'])) || ($row_Diolist['image'] == 'no') ): ?> 

Open in new window

We might need to see what the data actually looks like, in order to test.
Avatar of Jan Louwerens
Jan Louwerens
Flag of United States of America image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial