Hi
I have a web page that prints out records from mysql database that paginates every records. Is it possible to insert some php into my code to tell it to print out a random banner ad every 5 rows?
if ( ($row % 5) === 0 ) {
// Banner
} else {
// Normal output
}
Maybe something like the above?
You might add && $row != 0
to not have banner on the first row.
You should consider that not all users will mind seeing so many ads, some might end up using AdBlock on your site, and some might leave
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.