Limiting Number Of Records Stored, PHP |
Limiting Number Of Records Stored, PHP |
katl |
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 |
Darin McGrew |
May 9 2007, 12:31 PM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Your best bet is to choose a guestbook script that includes this feature.
|
Brian Chandler |
May 9 2007, 01:32 PM
Post
#3
|
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!)
|
Lo-Fi Version | Time is now: 10th June 2024 - 06:29 AM |