Hello, I have a site using php, I want to post adsense code or any java script inside home page blocks, I searched more and I found that is to insert java script this way, that needs : (echo) at the first of any lines that JavaScript consist of. I tried that but it failed ..is there any one who can inform me about how to do that Thanking you ... !!!
That is probably true, there are actually two ways you could do this. Try this first and see if it gives you any errors (i doubt it will). ?>[I][COLOR="red"]PLACE YOUR JAVASCRIPT CODE HERE[/COLOR][/I]<?php Code (markup): Or this: echo('[I][COLOR="Red"]PLACE YOUR JAVASCRIPT CODE HERE[/COLOR][/I]'); Code (markup): Keep the single quotations, send the error if you are getting one.
You can use either the "include" or the "require" command. I'm just learning php but I'm not new to coding.
Well in html, you just need to paste whatever Adsense gives you in your code, there is no need to add anything.
Thanks for all of you, it worked ... !!! what I meant by (html) code is : (html) inside (php) code. Zandigo : yes to add adsense code in (html) there is no need to add anything.