Trying to update an XML file with PHP (Flash Trivia Game)
Hello everyone, I have a XML driven Flash 8 (AS2) Trivia Game that works great. It reads in questions, directions, scores, initials, tallys, etc. What I would like to do is update the XML after each game (the top ten: initials, scores, as well as tallys) The tallys are the percentages that add up and let the contestant know what percentages of the multiple choice answers were chosen by all past players. Basically it just adds 1 to whatever answer the contestant chooses. The trivia game currently has ten questions, each a 4 answer MC question.
I have no PHP background experience, but need to jump this hurdle ASAP to figure out how to update the XML after the trivia submit button. I know that appending data at the end of the XML isn't a problem, it's the writing back and only effecting certain child nodes (some halfway deep) on the original XML (i.e. only top ten scores, top ten initials, and the tallys for each question (right now 40 - 10X4 tallys each))
If there is any good articles or videos or sites please let me know. I learn fast. Thanks....
Comments
Be the first to write a comment
You must me logged in to write a comment.