Adding ads in php

Can anyone tell me how to place Google ads or even pics into this code

$728x90top = ""; $120x600left = ""; $120x600right = ""; $125x125 = ""; $728x90bottom = "";

[code]<?php

// Your Shourts
$short1 = “”;
$short2 = “”;
$short3 = " ";
$short4 = " ";
$short5 = " ";
$short6 = " ";
// Reviews
$review1 = " ";
$review2 = " ";
$review3 = " ";
$review4 = " ";
$review5 = " ";
$review6 = " ";

// Ad Advertisment
$728x90top = “”;
$120x600left = “”;
$120x600right = “”;
$125x125 = “”;
$728x90bottom = “”;
[/code]

Probably you can just add your ads code into corresponding variable? Like this:
[php]

<?php $728x90top = ' '; ?>

[/php]
Note, I used single quotes instead of double, just to avoid escaping double quotes within ad code.

could you do this with just an img, and then link it? and what would that look like.
Thanks

But Google adsense provides this javascript code for their ads. And I posted example of how you can add such ad to your code. If you want just image with link, code will be like this:
[php]<?php
$728x90top = ‘’;
?>[/php]

Is this what you asked about?

yea thats it ill try it thanks, again for the help

Sponsor our Newsletter | Privacy Policy | Terms of Service