Hi everybody,
i hope i post in the right forum.
I parse a xml file via simple xml. Thats works. Now i want to insert the data inside my mysql database. But he only put the first entry inside.
Looks like my foreach works not properly.
When i take my insert away and make anormal echo it shows me all entrys inside my Var..
Here is my Code:
[code=php]
$logo = simplexml_load_file(‘http:XXXXXXXXXXXX’);
foreach($logo->ressource as $ressource) {
$eintrag = “INSERT INTO animated_logos (lib, url_download, file) VALUES (‘$ressource->lib’, ‘$ressource->url_download’,
‘$ressource->file’)”;
$eintragen = mysql_query($eintrag);
}
I hope somebody has an idear …
Thanks Netelb