07-12-2008, 07:30 PM
|
#3 (permalink)
|
|
The Addict
Join Date: Nov 2007
Location: USA
Posts: 256
Thanks: 7
|
here is what the page outputs if you view the source.
Ijust added some spacing to see it better.
Code:
<div class="rightArea">
<script type="text/javascript">
<!-- google_ad_client = "pub-9855112947620642";
/* tuts234x60 */
google_ad_slot = "8462468271";
google_ad_width = 234;
google_ad_height = 60;
//--> </script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
</div>
And copied strait from the google site here is the ad.
Code:
<script type="text/javascript"><!--
google_ad_client = "pub-9855112947620642";
/* tuts234x60 */
google_ad_slot = "8462468271";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
And the php code that outputs it.
Query
PHP Code:
while($r=mysql_fetch_array($InfoResult)) {
$ExtraInfo=$r["ExtraInfo"];
$Ad=$r["Ad"];
$Ad2=$r["Ad2"];
}
Some other code then
Output
PHP Code:
echo "<div class=\"rightArea\">
$Ad
</div>";
|
|
|
|