₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,020 members, 8,419,966 topics. Date: Thursday, 04 June 2026 at 08:28 AM

Toggle theme

Hi, I Need Help With This Php Code : - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingHi, I Need Help With This Php Code : (1102 Views)

1 Reply (Go Down)

Hi, I Need Help With This Php Code : by sandy0000(op):
I am using the code below to insert adsense code into my joomla modules. The ctr for these is so good. I would like to edit the code to display 2 more ads on the 8th and 12th count. Please how can I insert additional banners :

<?php $counter++;
if ($counter == 8 ) { ?>
<tr><td> Adsense Code </td></tr>
<?php } ?>
Re: Hi, I Need Help With This Php Code : by Nairaface: 12:33pm On Sep 11, 2012
sandy0000: I am using the code below to insert adsense code into my joomla modules. The ctr for these is so good. I would like to edit the code to display 2 more ads on the 8th and 12th count. Please how can I insert additional banners :
<?php

$counter++;
if ($counter == 8 )

{
<tr><td> Adsense Code </td></tr>
}

Elseif ($counter == 12 )
{
<tr><td> Adsense Code </td></tr>
}

Else

{
Default action
}

?>

I didn't test the above so pls do.
Re: Hi, I Need Help With This Php Code : by eazyd(m): 1:12pm On Sep 11, 2012
sandy0000: I am using the code below to insert adsense code into my joomla modules. The ctr for these is so good. I would like to edit the code to display 2 more ads on the 8th and 12th count. Please how can I insert additional banners :

<?php $counter++;
if ($counter == 8 ) { ?>
<tr><td> Adsense Code </td></tr>
<?php } ?>
One open short tag should work fine, just like the above.
Re: Hi, I Need Help With This Php Code : by veetubes: 10:43am On Sep 12, 2012
sandy0000: I am using the code below to insert adsense code into my joomla modules. The ctr for these is so good. I would like to edit the code to display 2 more ads on the 8th and 12th count. Please how can I insert additional banners :

<?php $counter++;
if ($counter == 8 ) { ?>
<tr><td> Adsense Code </td></tr>
<?php } ?>
i believe your question has been answered by nairaface
Re: Hi, I Need Help With This Php Code : by sandy0000(op): 7:03am On Sep 19, 2012
Thank you so much guys. I love you Nairalanders !
1 Reply

Pls Help Me With This Php CodeHelp On Php Code For A Dice GameHelp With This Php Code.234

American Bank Offers $1M To Anyone Able To Solve This Mathematical EquationHow To Create A Simple Cost Calculator?...