HTML Help! Tables and txt files?

Dex Luther

New member
Ok so I'm building a website for a clan I'm in, but the problem is the ranks kinda fluctuate often. Every person's name is matched with a headshot of their character, and both are under a header of their Rank title. For example:

LEADERS

|___|-------|___|
Name1 | Name2

SUBLEADERS

|___|-------|___|
Name3 | Name4

(Note: '|___|' is the head shot pictures and the "---" between are spacers because Yahoo answers won't align them otherwise)

Now since the ranks change a lot I don't want to have to keep changing the website's HTML code. Instead I want to make a txt file. In this text file each line would have a name and image url. Something like this:

LEADERS
Timmy [Image URL]
Steve [Image URL]

SUBLEADERS
Ted [Image URL]

Basically I want help writing a code that will read each line of the text file and then display the corresponding name with the correct image.

Please help!
nhieukhi... sorry, but without any explaination I can't really figure out what all that is supposed to do, but offhand from what I do understand of it it looks like you're misunderstanding what I want to do. If I have the names and URLs listed in the code then what's the point of even having the txt file?
Albert You're also missing the point. When I need to change who's a leader or subleader I want to be able to do so simply by adding or removing lines from a txt file.

In the text file:
Line one would serve to set Name1 and Picture1 in the HTML.
Line two would serve to set Name2 and Picture2 in the HTML.
And so on.
 
Back
Top