it is necessary to write data from xml to mysql
Here I sketched code in php, but for some reason the variables are empty 
xml:
it is necessary to write data from xml to mysql
Here I sketched code in php, but for some reason the variables are empty 
xml:
It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:
Go through entities like this:
foreach ($sxml->good as $good) { $sh = $good['sh']; $name = $good['name']; $ed = $good['ed']; $cost = $good['cost']; // Или можно в одну строчку, если последовательность аттрибутов гарантированно не меняеться // list($sh, $name, $ed, $cost) = $good->attributes(); printf("%s %s %s %s <br/>", $sh, $name, $ed, $cost); } Source: https://ru.stackoverflow.com/questions/525164/
All Articles