s4salman Posted April 4, 2009 Share Posted April 4, 2009 Hello i want to put adsense code into this: if (is_int($i / $cols)){ echo "<td width='180' align='center' style=\"border-style: dotted; border-width: 1\">$mybox</td></tr><tr>"; }else{ echo "<td width='180' align='center' style=\"border-style: dotted; border-width: 1\">$mybox</td>"; } if ( $i / $cols == 2) echo "<td colspan='3' align=\"center\"><!--here i want to put adsense ad code--></td></tr><tr>"; $i++; //end if }//end while i want to put this adsense code : <script type="text/javascript"><!-- google_ad_client = "pub-8599219576830682"; /* funxy forex 336x280, created 4/3/09 */ google_ad_slot = "4524729891"; google_ad_width = 336; google_ad_height = 280; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> Link to comment https://forums.phpfreaks.com/topic/152552-solved-adsense-into-php/ Share on other sites More sharing options...
Mchl Posted April 4, 2009 Share Posted April 4, 2009 http://www.php.net/manual/en/language.basic-syntax.phpmode.php Link to comment https://forums.phpfreaks.com/topic/152552-solved-adsense-into-php/#findComment-801225 Share on other sites More sharing options...
s4salman Posted April 4, 2009 Author Share Posted April 4, 2009 i know that we use : google_ad_slot = \"4524729891\"; But what to do here : google_ad_width = 336; as there is no inverted commans before and after 336 please help Link to comment https://forums.phpfreaks.com/topic/152552-solved-adsense-into-php/#findComment-801246 Share on other sites More sharing options...
Mchl Posted April 4, 2009 Share Posted April 4, 2009 No inverted commas (also called double quotes), no pain. Leave it as it is. Link to comment https://forums.phpfreaks.com/topic/152552-solved-adsense-into-php/#findComment-801255 Share on other sites More sharing options...
s4salman Posted April 4, 2009 Author Share Posted April 4, 2009 Solved. Thanks Link to comment https://forums.phpfreaks.com/topic/152552-solved-adsense-into-php/#findComment-801259 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.