Forum Moderators: open
So I have a text file with the following headings
First Name
Last Name
ID#
Attend1
Attend2
Attend3
Attend4
Attend5
Ultimately what I want is for the user to click on a link and a web page letter will open that says something like this,
--------
During 2004, the chapter met on 2/15/2004, 4/15/2004, 6/15/2004, 8/15/2004 and 10/15/2004. This letter is to confirm that [John][Doe], ID#[1234] attended the following chater meetings in 2004.
[2/15/2004]
[4/15/2004]
[6/15/2004]
[8/15/2004]
[10/15/2004]
So what I need is a text file as a database and an XML file set up as a letter to read the text file? I am really not sure what I need.
Any help you can provide is much appreciated. My server does have PHP is that is any help. I am looking for something easy to maintain, but where users can pull up their historical records for each year.
Thanks again for any assistance.
Jim
First question is how much help do you want? Do you want to write the script yourself or have someone do it for you?
Next, it doesn't sound sound like you need XML for this. PHP can read the file as it is.
How many members are there on the file? Also, how do you select the appropriate member? Will there be a (dynamic) list that they can pick from?
As for how much help I want, I will take whatever I can get. If you are willing to put something together for me that would be wonderful!
I really appreciate any help you can give. Right now we only have about 30 people in our organization, but I hope to increase that this year. As for how I link to their data / letter, I was just thinking so a simple list of names which are hyperlinks to bring up the template letter and show the info for that person.
Again, any help you can provide is very much appreciated.
Jim
We can do this with XML. first thing to do is to build the input file. You need to make it look like this....
<member>
<firstname>Fred</firstname>
<surname>Bloggs</surname>
<memberid>00001</memberid>
<attendance>
<date>01/01/2001</date>
<date>15/02/2001</date>
<date>12/03/1001</date>
<date>16/04/2002</date>
<date>18/03/2003</date>
</attendance>
</member>
Please sticky the file to me. Then we can build the php script.
<?xml version="1.0"?>
- <member>
<firstname>Fred</firstname>
<surname>Bloggs</surname>
<memberid>00001</memberid>
- <attendance>
<date>01/01/2001</date>
<date>15/02/2001</date>
<date>12/03/1001</date>
<date>16/04/2002</date>
<date>18/03/2003</date>
</attendance>
</member>
I really appreciate you working with me on this.
Jim