How would I create a page which has automatic weekly updates?

Discussion in 'Programming' started by Gazz1982, Nov 9, 2007.

  1. #1
    I need to create a list of current projects which is drawn from a list within a separate page, this separate page is constantly updated.

    How would I make the list of current project update on a weekly basis?

    Thanks

    Gary
     
    Gazz1982, Nov 9, 2007 IP
  2. Jamie18

    Jamie18 Peon

    Messages:
    201
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you might want to either consider storing the information that needs updating in a database.. and extracting it from there where it needs to be used on all pages.. you would than only need to update it in the database..


    or you could set variables to contain these values in a server side included file..

    i.e.
    update_vars.cfm
    <cfset var1="here is the update text">
    <cfset var2="Today I ate special k with banana">
    .....etc
    
    Code (markup):
    file1.cfm
    <cfinclude template="update_vars.cfm">
    <html>
    <head>
      <title>Paragraph info</title>
    </head>
    <body>
      ....
      <cfoutput>
        <p>#var1#</p>
        <p>#var2#</p>
        ...
      </cfoutput>
      ....
    </body>
    </html>
    
    Code (markup):
    file2.cfm
    <cfinclude template="update_vars.cfm">
    <html>
    <head>
      <title>List info</title>
    </head>
    <body>
      ....
      <cfoutput>
        <ul>
          <li>#var1#</li>
          <li>#var2#</li>
          ...
        </ul>
      </cfoutput>
      ....
    </body>
    </html>
    Code (markup):
     
    Jamie18, Nov 9, 2007 IP