View Full Version : Google Ads In PHP
incka
12-23-2003, 09:21 AM
I can't get google ads to show in my php... Someone help me... I'm using the '; type of ending and the echo ' type of starting.
chromate
12-23-2003, 09:29 AM
Not quite sure what you mean... But where you want the google ads to show just come out of php and paste in the normal adsense javascript...
<?php all your php stuff here ?>
adsense javascript here
<?php back into php here ?>
Get the idea? You shouldn't use echo to display everything. In fact, it's faster not to.
Shawn
12-23-2003, 09:47 AM
Do you want to use a PHP include?
incka
12-23-2003, 09:50 AM
Also I can't connect to the database...
incka
12-23-2003, 09:52 AM
Originally posted by chromate
Not quite sure what you mean... But where you want the google ads to show just come out of php and paste in the normal adsense javascript...
<?php all your php stuff here ?>
adsense javascript here
<?php back into php here ?>
Get the idea? You shouldn't use echo to display everything. In fact, it's faster not to.
I copied your code but it didnt like it...
incka
12-23-2003, 09:55 AM
OK, i altered your code and got the ad to display... now its ignoring my text-decoration:none; thing and underlining some link I don't want it to underline... And I still can't get it to connect to the database...
incka
12-23-2003, 10:00 AM
I won't display what it's supposed to display with echo $row['content'];...
Is it because my table has no key?
chromate
12-23-2003, 10:15 AM
Without looking at the whole thing, it's too hard to tell. You'll need to paste more of the code to give us a bigger picture.
Shawn
12-23-2003, 10:19 AM
You could just put the ads in an include. It'll have the same effect as the database, more or less. It'll save you a lot of time if you're having this much trouble.
All sorted now:)
The content wasn't showing as one of the variables wasn't set to the right number. Happened with me first time I tried it:)
incka
12-23-2003, 01:11 PM
See... I'm following the fabled route of Mike...
Mmm... Making a template site... Wait... I'll do that AFTER I make a site called gawmir.com with someone with a first name starting with ga and a lastname starting with w...
incka
12-24-2003, 04:45 AM
Mmm... Build site for rubbish local band and host on gawmir.com...
Incka, your really starting to piss me off now. You do nothing but post stupid comments, you don't know how to use the edit button, and I bet there's plenty more bad habits as well.
Grow up.
incka
12-24-2003, 05:06 AM
Oh come on, it's a forum, have a laugh once in a while...
Exactly it's a forum. A webmaster forum. It's not one to see who can make up the best insult.
Rant over.
incka
12-24-2003, 07:52 AM
I wasn't trying to insult you. I was having a laugh at our old sites... You should see some of mine... If you look at you posts in this threads they actually have insults to me in...
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.