You are the man! Can we give hugs on this board?

Seems to be working like a champ.

I used the following code to create the variable for the image:
PHP Code:
if ($_SESSION['referral_code'] != '') {
    
$MY_HEADER_LOGO_IMAGE $_SESSION['referral_code'];
        } else {
        
$MY_HEADER_LOGO_IMAGE 'header'
        } 
I used the following code for the header image:
PHP Code:
echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">' '<img src="https://www4027.ssldomain.com/energetixjewelry/shop/includes/templates/energetix/images/' $MY_HEADER_LOGO_IMAGE'.gif"' '</a>'
Is there more of a zen way, other than putting the full image URL?