Jump to content

Please HELP!


xip

Recommended Posts

It is kinda hard to put into words so bare with me! 

 

I am building a website with the following design:

 

table (first 30 rows of data from db)

 

banners

 

table (next 30 consecutive data from db)

 

then pagination to next page with same format as above continuing to display the next consecutive set of data per table

 

The only way I know how to do this is to set query limits (ie Limit 0,30...Limit 30,30..etc) which is real time consuming and requires lots of code because the db is very large and changes in size every day..I need some type of code that can break up my db by a specific number and output two tables per page WITH the "break" for banners...

 

So what is a good alternative to the limit technique?

 

Thanks!

 

 

Link to comment
Share on other sites

Abstract data using a 60 record limit. Count rows outut and when you get to 30 stick in a row of banners then continue. What does any of this have to do with whether your table has 100 rows or 1000 rows. If it's "real time consuming and lots of code" it sounds as though your coding approach needs to be changed.

 

Am I missing the point?

Link to comment
Share on other sites

ya the whole reason I posted was because I know it needs to be approached differently and I'm asking how I should go about doing this...I need to have two separate tables per page...i can add in the banner myself I just don't know how to code it so it dumps it out 30 rows per table consecutively with pagination

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.