Try this
Code:
<?php
$country = wp_ozh_getCountryName(0) ;
switch ($country) {
case "Canada" :
?>
<a target="_blank" href="http://www.affiliate.com/fs-bin/click?id=referrer_ID"><IMG alt="Canadian Banner" border="0" src="http://images.affiliate.com/outsidebanners/Homepage-120X600.gif"></a><IMG border="0" width="1" height="1" src="http://ad.affiliate.com/fs-bin/show?id=referrer_ID">;
<?
break;
default :
?>
<a target="_blank" href="http://www.affiliate.com/fs-bin/click?id=referrer_ID"><IMG alt="American Banner" border="0" src="http://images.affiliate.com/outsidebanners/Homepage-120X600.gif"></a><IMG border="0" width="1" height="1" src="http://ad.affiliate.com/fs-bin/show?id=referrer_ID">;
<?
}
?>
When you have more that can be quickly printed or echoed, switch back and forth between code mode and html mode <? ?>. It makes it so much easier to read.
Cyberbite added 1 Minutes and 54 Seconds later...
And if you need to get a variable into the HTML you can do this
Code:
<?
//code
?>
<a href="http://blah><?=$variable?></a>
<?
//code
?>
See the <?=$variable?>, use that to echo php code into html.
Bookmarks