Insert adsense ads in between mySQL result

hi everyone,

been searching for quite some time and can’t get an answer, please help me on this one.

I need to run a mySQL query for a classifieds website, now when displaying the ads on a page, I need to insert a google adsense ad
in between the SQL results, call it for every 10 items in the result, insert google adsense ad.

can this be done ?

Not by using MySQL alone. What language are you using, PHP?


My apologies for leaving that info out! blond moment, yes I’m using PHP.

thanks for the quick reply.

What code are you currently using to display the results of the classifieds?


I’m using a pagination class.

could you post the code here or at least the part of the code that displays the classifieds?