Forum Moderators: coopster

Message Too Old, No Replies

CMS basic content update via form

need to update sections

         

amdorsey

8:03 pm on Mar 29, 2004 (gmt 0)

10+ Year Member



I have a site and I need to update the 'events' page. Lets say at any given time there will be 15 events. Each event has 3 parts, the date, event name and event description.

Do I need to have a field for every separate event? Or can I just have 3 fields (date, name, description) that append at the end of the event list. If so, how do I modify the events? Can they display in order?

Any thoughts?

httpwebwitch

8:56 pm on Mar 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Set up 3 fields per record, for those 15 records. In table-talk, that's 3 columns, 15 rows. Actually the number of rows doesn't matter.

You can add events 'til your fingers bleed and just get PHP to show the most recent 15 events. You could also set up events in advance, and display the ones you want based on some kind of logic and math using the current date.

httpwebwitch

8:57 pm on Mar 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



sorry, I assumed you're storing these events in a database. You could also solve this with items stored in a delimited text file.