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.
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.
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...
Get the idea? You shouldn't use echo to display everything. In fact, it's faster not to.PHP Code:
<?php all your php stuff here ?>
adsense javascript here
<?php back into php here ?>
Do you want to use a PHP include?
Also I can't connect to the database...
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...
Get the idea? You shouldn't use echo to display everything. In fact, it's faster not to.PHP Code:
<?php all your php stuff here ?>
adsense javascript here
<?php back into php here ?>
I copied your code but it didnt like it...
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...
I won't display what it's supposed to display with echo $row['content'];...
Is it because my table has no key?
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.
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
Don't you just love free internet games ?
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...
wtf?
Don't you just love free internet games ?
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.
Don't you just love free internet games ?
Oh come on, it's a forum, have a laugh once in a while...
Bookmarks