Im using a quite complicated script for parsing XML
so ill try to explain:
Im parsing from an XML file http://www.netclans.com/test.xml
As you can see there there are a number of fields. But my script now only parses the first one, as i need to parse them all, The problem here is in the ID...
Im using the following code:
"INSERT INTO attacks
(
id, attackerid, attackerstatename, attackertag, defenderid, defenderstatename, defendertag, type, losses,
)
VALUES
(...
I have a script wich is parsing info from an XML page and then storing it into the following variables:
$regplayers
$activeplayers
$deadplayers
Now if i want to get it into the DB:
$query =
"INSERT INTO stats
(
regplayers, activeplayers, deadplayers
)
VALUES
(
'$regplayers'...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.