google adds problem
im trying to get google adds on my site but im having trouble.
how do i insert the adds code
<script type="text/javascript"><!– google_ad_client = "pub-1136863488497926"; google_ad_width = 468; google_ad_height = 15; google_ad_format = "468x15_0ads_al"; google_ad_channel = ""; google_color_border = "888888"; google_color_bg = "888888"; google_color_link = "dddddd"; google_color_text = "DDDDDD"; google_color_url = "DDDDDD"; //–> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
into my site when it is in php. when i try and use php echo "
all of the " and ; in the add script cancels it out and stuff and i have no idea how i can insert the script.
More than likely the problem you are having is that you tried using
echo "Code Here";```
However that would fail because when you attempt to put "" or Double quotes around an object that contains Double quotes, you end up with an error because the PHP interpenetrates the "" inside the HTML code as the end of the statement. To Fix this problem use '' or Single quotes around HTML code and other strings that contain ""
example:
```markupecho '<font color="06699">';```
hope this helps
HTML can use single quotes, but yea recommended to use double, you can do w/e you want…
like
echo " <font color='red'>FONT</font> ";
or
echo ' <font color="red">FONT</font> '; whatever you do, but not to enter the same quote you've used to begin echo… or you can end php…
like this :
<?php //code… ?>
<html> <head><title></title></head> <body> <!–Code here –> </body> </html>
<? //start php again… //much code… ?>
@spyware> wat ben je toch een mf'ing loserrrrrrrr. iemand met een verstand,zou zichzelf kapot schamen ^^ which you obviously dont. dus als je gefrustreerd bent,ga tegen je mama lopen schreeuwen ofzo… capiche? :happy:
Ok guy's we need to play nice in the forums. @Spyware you make some valid points, I'm sick of people posting replies who have no clue what thier talking about myself BUT let's calm down just abit.