Hi Everyone.

Can someone assist me? I'm pulling data from a DB, If the first value is empty it should check the second one and if that is also empty assisgn value.

Hope it's understandable.

Regards

if(empty($veh_img)){
	$galpic="image.gif";
		}elseif(empty($disk_img)){
          $galpic="image.gif";
}else{
		 $galpic="$disk_img";
		}

Like this?

if(empty($veh_img) AND empty($disk_img)){
    $galpic="image.gif";
}else{
    $galpic="$disk_img";
}

Like this?

if(empty($veh_img) AND empty($disk_img)){
    $galpic="image.gif";
}else{
    $galpic="$disk_img";
}

Hi Beat_Slayer

It works 100% thanks for sharing your knowledge.
Enjoy your day.

Regards