I need a way to create a variable based on an external text file.
To the point:
file.db
col1|col2| col3|
5|red|green
8|gold|chair
ok I need to search this file based on col1 and have results displayed.
Except if I search for 5 and it returns the results I need 5 to be displayed as 'apple'. The catch is that tomorrow if I do the same search I need 5 to be displayed as 'peach'.
File2.db can be the file that defines what the variable is.
1|peach
2|apple
3|grape
And this file is replaced daily so it is up to date.
So the replacement file could be
1|grape
2|apple
3|orange
Of course this format can be different
grape|
orange|
fruit|
Javascript is no go (as far as I can tell)
So what I need is a mod in the file.pl that will look at file2.db and create the variables for file.pl to use. I can't make the change in header fashion nor can I do a lot more table and frame changes.
I hope I haven't gone overboard in my explanation here.
Thanks for any help
To the point:
file.db
col1|col2| col3|
5|red|green
8|gold|chair
ok I need to search this file based on col1 and have results displayed.
Except if I search for 5 and it returns the results I need 5 to be displayed as 'apple'. The catch is that tomorrow if I do the same search I need 5 to be displayed as 'peach'.
File2.db can be the file that defines what the variable is.
1|peach
2|apple
3|grape
And this file is replaced daily so it is up to date.
So the replacement file could be
1|grape
2|apple
3|orange
Of course this format can be different
grape|
orange|
fruit|
Javascript is no go (as far as I can tell)
So what I need is a mod in the file.pl that will look at file2.db and create the variables for file.pl to use. I can't make the change in header fashion nor can I do a lot more table and frame changes.
I hope I haven't gone overboard in my explanation here.
Thanks for any help