View Single Post
Old 12-30-2013, 06:17 AM  
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Quote:
Originally Posted by Oracle Porn View Post
Can you post it or do you just want to show the size or your e-penis?
That is correct my e-penis is hugeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.
PHP Code:
if ($country_code==DE){ echo '<img src="Debanner.jpg"></img>';}
else
{echo 
'<img src="allbanner.jpg"></img>';} 
Better way:
PHP Code:
 <?php

    $country 
getenv(GEOIP_COUNTRY_NAME);
    
$country_code getenv(GEOIP_COUNTRY_CODE);


switch (
$country_code) {
        case 
'US':
        echo 
'<img src="Usbanner.jpg"></img>';
            
        case 
'DE':
        echo 
'<img src="Debanner.jpg"></img>';
        
        default:
         echo 
'<img src="Other.jpg"></img>';
            
            
    }
?>

Last edited by Klen; 12-30-2013 at 06:23 AM.. Reason: Beacuse my e-penis is huge
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote