Hi,
I have a code where I limit the MySQL database to a maximum of 5 post, then and ad is displayed, then i have the same code again, but how do i then start from post 6 to 10?
Thanks
Qaid
Simple Question - Limit by.. Start number #
Moderator: General Moderators
- aerodromoi
- Forum Contributor
- Posts: 230
- Joined: Sun May 07, 2006 5:21 am
Re: Simple Question - Limit by.. Start number #
Just as a suggestion - why don't you read the database output into an array (mysql_fetch_array) and insert the ad while looping through the array (while printing out its contents)? This way you don't need two queries.Qaid wrote:Hi,
I have a code where I limit the MySQL database to a maximum of 5 post, then and ad is displayed, then i have the same code again, but how do i then start from post 6 to 10?
Thanks
Qaid