is these a good idea? will i get banned?
You need to explain in more detail exactly what you’re proposing to do.
Is this a PHP question? You’ve posted in the #php category.
If it’s a question about AdSense, then I’ll move it to the #marketing forum.
i want to know if placing an adsense code in my database table n displaying it on my site from there is okay and not against rules instead of me just playing the code on my html page direct
Nobody will know the difference
Well, you shouldnt get banned as noone will know, but I am curious and interested to know, what and why are you doing same ?