Help me Please: How to add adsense in php script

Discussion in 'PHP' started by rentabilisez, Sep 7, 2009.

  1. #1
    Hello,
    I've this guestbook in php: 20min.idoo.com
    and would like to:
    1. Add adsense banners on the right and left side
    2. Add 5 text links at the bottom of the pages.
    How can i do that?
    Please bear in my that i'm not a programmer although i've a small knowledge of html.
    Thank you for your help.
    regards,
     
    rentabilisez, Sep 7, 2009 IP
  2. Brandon_R

    Brandon_R Peon

    Messages:
    330
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You would need to have your adsense code in hand. For the footer open up livre_lire.php and at the bottom add echo 'adsense code here'; before the PHP closing tags (?>). As for the sidebar you will need to add another table over the website like this:

    Add the following code at the top of the page using echo

    
    <table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
    	<tr>
    
    	<td width="150" valign="top" class="page" style="padding: 5px;">
    		Adsense code here
    	</td>
    
    	<td valign="top">
    
    HTML:
    and add the following at the bottom of your page

    
    	</td>
    
    	</tr>
    </table>
    
    HTML:
     
    Brandon_R, Sep 7, 2009 IP
  3. yuvrajm

    yuvrajm Peon

    Messages:
    52
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    simple put \"\" inplace of "" in echo.
     
    yuvrajm, Sep 8, 2009 IP