Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Convert XML into database

Newbie Spellweaver
Joined
Feb 2, 2010
Messages
20
Reaction score
4
Convert XML into database
Could someone help me with a project to help everyone
I'm trying to make a xml reader in php to comverter itemsDB.xml in the database
to facilitate our life time to move the items from xml to database

My Project
<?php
$xml_str = file_get_contents('itemsDB.xml');
$xml = new SimpleXMLElement($xml_str);
$WeaponsArmory = $xml->xpath('*/Weapon');

foreach($WeaponsArmory as $Weapon) {
echo $Weapon[''], 'INSERT INTO [Items_Weapons] VALUES (', $Weapon['itemID'], ', ', $Weapon['FNAME'], ', ', $Weapon['category'], "\n<br>";
}


I'm not managing to add
Model
MuzzleModel
HudIcon
Store
PrimaryFire
Animation
Sound
FPS
 
Newbie Spellweaver
Joined
Nov 9, 2013
Messages
82
Reaction score
57
I don't know php much but...
Maybe you can take a look at the api_GetItemsDB.php and reverse it since its updating xml from sql?
 
Upvote 0
Back
Top