g1c9 Posted February 5, 2006 Share Posted February 5, 2006 Ok, I need your feedback on how to go about this. (Kind of like a puzzle, but this is for something practical.)This is basically what I want.Lets say I have 5 pages, and they all have a variable. See below.page | variable value------------------------1 | APPLE2 | COOKIE3 | BANANA4 | MONKEY5 | TREENow on each of my 5 pages, I want to display a word from one of the 4 other pages. Each page's word needs to be displayed as many times as that page has displayed all the other page's word. Each page displays a word when it loads. So basically, these words have a 1:1 display rate. (Everytime one word's page displays another page's word, another page will display its word.)The idea i have thus far is this:make a plain text file and put assign a key ID to each one of the items i listed above. On each page's load the file will be opened and the key will be read from the file, matched up in a DB with it's noun from the list, and then displayed. Then the noun from the page that just did all that will open up the text file and write its noun's key to the file. Wash, rinse, and repeat.However, I think that will get very,very slow becuase I plan on having many,many words. How do you suggest I go about this? Quote Link to comment Share on other sites More sharing options...
play_ Posted February 7, 2006 Share Posted February 7, 2006 maybe an array or database? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.