Forum Moderators: coopster
if ($image == "" ¦¦ $download == "") {
this is asking if EITHER $image = "" OR $download = ""
So, if one of them is "" then the condition will be true and then it will set both like this:
$image = "No Data Exsists";
$download = "No Data Exsists";
Maybe you should use && (and) instead of ¦¦ (or) because I'm sure you don't want $image to equal "No Data Exists" when there is data.
Another way would be to use 2 if's
assuming you that $image and $download have been set:
if ($image == ""){
$image = "No Data Exists";
} else {
// do stuff
}
if ($download == ""){
$download = "No Data Exsists";
} else {
// do stuff
}