Forum Moderators: coopster
What I am struglink with is to make an IF work with 4 retrieved values.
I want the following 3 to display consecutively (no spaces) as they end up being a link (within a span for css purposes) with the 'code' being the query part of the URL:
<?php echo $row_D100LIST['pixlink1'];?>
<?php echo $row_D100LIST['code'];?>
<?php echo $row_D100LIST['pixlink2'];?>
But only when Yes is the returned value of:
<?php echo $row_D100LIST['displaypix'];?>
So we are looking at:
IF displaypix = 'Yes'............?
My coding skills are very limited so if someone could help me on this in a very basic and simple way, I would be very happy.
if($row_D100LIST['displaypix'] == "yes") {
//do something, in your case print the link
} else {
//do nothing, or print error message
}
Good luck :)