Skip to main content
October 9, 2008
Question

Want to change story on homepage with browser refresh

  • October 9, 2008
  • 1 reply
  • 171 views
What would be the best way to do this? I have seen it done with arrays however i would need help with that as I am not too talented in that area thoughts?

I would need to house or change the title image link and text so 4 pieces of information.
    This topic has been closed for replies.

    1 reply

    Inspiring
    October 9, 2008
    PopcornCoder wrote:
    > What would be the best way to do this? I have seen it done with arrays however i would need help with that as I am not too talented in that area thoughts?

    You would have a repository of stories, be it database, array, file etc.

    You would have a variable that defines which story from the above
    repository to display.

    Every time the page is requested you would assign this variable a value
    based on the business rules you want to govern it. This may involve
    somehow storing|passing the previous value to the next request, if the
    rules dictate that knowledge of the previous value is required.