- Jan 19, 2006
- 677
- 0
- 76
okay, so I have this text file that is full of character data, heres an example of what the file looks like:
myProfile = {
["Khaz Modan"] = {
["Tenchu"] = {
["Note"] = "",
["Zone"] = "Elwynn Forest",
["Group"] = "mario make me some bags now!>",
["Class"] = "Rogue",
["Online"] = "",
["RankIndex"] = 9,
["Level"] = 8,
["LastOnline"] = 11,
["Name"] = "Tenchu",
["Rank"] = "Officer Alts",
},
["Ainhin"] = {
["Note"] = "",
["Zone"] = "Elwynn Forest",
["Group"] = "",
["Class"] = "Paladin",
["Online"] = "",
["RankIndex"] = 7,
["Level"] = 15,
["Name"] = "Ainhin",
["Rank"] = "Initiate",
},
["Myrios"] = {
["Note"] = "",
["Zone"] = "Ironforge",
["Group"] = "",
["Class"] = "Mage",
["Online"] = "",
["RankIndex"] = 8,
["Level"] = 5,
["LastOnline"] = 14,
["Name"] = "Myrios",
["Rank"] = "Peon",
},
*
*
*
*
*
["Moonshade"] = {
["Note"] = "",
["Zone"] = "Darnassus",
["Group"] = "",
["Class"] = "Rogue",
["Online"] = "",
["RankIndex"] = 7,
["Level"] = 15,
["LastOnline"] = 4,
["Name"] = "Moonshade",
["Rank"] = "Initiate",
},
},
}
(theres about 80 other entries between the ****)
Pretty much I need a script that will pull 4 things from each character: "Class", "Level", "Name", and "Rank" and then take that data and insert it into a sql table. Now I am pretty familiar with php/sql, its just been a few months and im tired of messing with this and getting no where. Any ideas, comments, or just scripts in general you guys can help me with. thanks in advance.
myProfile = {
["Khaz Modan"] = {
["Tenchu"] = {
["Note"] = "",
["Zone"] = "Elwynn Forest",
["Group"] = "mario make me some bags now!>",
["Class"] = "Rogue",
["Online"] = "",
["RankIndex"] = 9,
["Level"] = 8,
["LastOnline"] = 11,
["Name"] = "Tenchu",
["Rank"] = "Officer Alts",
},
["Ainhin"] = {
["Note"] = "",
["Zone"] = "Elwynn Forest",
["Group"] = "",
["Class"] = "Paladin",
["Online"] = "",
["RankIndex"] = 7,
["Level"] = 15,
["Name"] = "Ainhin",
["Rank"] = "Initiate",
},
["Myrios"] = {
["Note"] = "",
["Zone"] = "Ironforge",
["Group"] = "",
["Class"] = "Mage",
["Online"] = "",
["RankIndex"] = 8,
["Level"] = 5,
["LastOnline"] = 14,
["Name"] = "Myrios",
["Rank"] = "Peon",
},
*
*
*
*
*
["Moonshade"] = {
["Note"] = "",
["Zone"] = "Darnassus",
["Group"] = "",
["Class"] = "Rogue",
["Online"] = "",
["RankIndex"] = 7,
["Level"] = 15,
["LastOnline"] = 4,
["Name"] = "Moonshade",
["Rank"] = "Initiate",
},
},
}
(theres about 80 other entries between the ****)
Pretty much I need a script that will pull 4 things from each character: "Class", "Level", "Name", and "Rank" and then take that data and insert it into a sql table. Now I am pretty familiar with php/sql, its just been a few months and im tired of messing with this and getting no where. Any ideas, comments, or just scripts in general you guys can help me with. thanks in advance.