The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Limiting Number Of Records Stored, PHP
katl
post May 9 2007, 12:02 PM
Post #1





Group: Members
Posts: 2
Joined: 2-May 07
Member No.: 2,703



Is there a way I can limit the number of records that are stored in a database? I am using a PHP guestbook script for personal use and only want to save say the last 100 messages. Thanks!

This post has been edited by katl: May 9 2007, 12:26 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
Brian Chandler
post May 9 2007, 01:32 PM
Post #2


Jocular coder
********

Group: Members
Posts: 2,460
Joined: 31-August 06
Member No.: 43



Or if the guestbook is already up and running, you should be able to write a simple script that chops out all but the last 100. (Test it somewhere else, though!)

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 11th May 2024 - 08:43 AM