In Reply To:
what if you tried
if ($photo[x]) { dosomthing here }
where x= the desired position in the array
wouldn't that return either a 0 or a non-zero number? with zero meaning no photo
This worked! THANKS!!!
|;
if ($photo[0]) { print qq| <img src="$SAVE_DIRECTORY_URL/$rec{$db_key}/$photo[0]" height=200> |; }
if ($photo[1]) { print qq| <img src="$SAVE_DIRECTORY_URL/$rec{$db_key}/$photo[1]" height=200> |; }
if ($photo[2]) { print qq| <img src="$SAVE_DIRECTORY_URL/$rec{$db_key}/$photo[2]" height=200> |; }
if ($photo[3]) { print qq| <img src="$SAVE_DIRECTORY_URL/$rec{$db_key}/$photo[3]" height=200> |; }
if ($photo[4]) { print qq| <img src="$SAVE_DIRECTORY_URL/$rec{$db_key}/$photo[4]" height=200> |; }
if ($photo[5]) { print qq| <img src="$SAVE_DIRECTORY_URL/$rec{$db_key}/$photo[5]" height=200> |; }
print qq|
Chris