Jump to content

Table entry limitss


tcorbeil

Recommended Posts

Hey everyone.

 

I'm trying to install a ticker on my site that displays the lates 30 entries from a database...how would i go about doing so?

 

Is there a way to have a table only accept 30 entries and bump out one entry as 1 new entry is entered??

 

Any ideas would be much appreciated.

 

Thanks.

T.

Link to comment
Share on other sites

Well, basically I have a several tables in one database.. data is entered in all of the tables so what I was thinking was to have a one table receive a copy of all entries (no matter which table the entry is destined for..) and use that one table as a "most recent entries" table.. only thing is, I don't want to populate it with more entries than I need..

 

Any other ideas?

 

T.

Link to comment
Share on other sites

Unless I completely misunderstood your response, you're suggesting something that will use more data space (and tables) than is necessary if you followed my suggestion.  Your concept appears to be to duplicate every entry but to delete the 'oldest' and write the 'newest' into a separate table. I'm missing the point, apparently.

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.