Forum Moderators: open
I got all the states and coded them into an array in an include file in the following kind of format:
$state[1]=california;
$state[2]=nevada;
$state[3]=arizona;
etc
Then I ran a timed test where I printed the names off a couple of hundred times, then I did the same caling the data from the DB.
Pulling the information from the include file was far far faster than pulling it from the DB.
I'm considering coding the site using this process to display non-changing data rather than calling it from the DB -- I'd just include the dictionary file with any files that needed the info -- are there any issues that would make this an unwise method?
Any pointers much appreciated