I need to insert repeat values from xml feed
This is php version 4 (no SimpleXML) and not certain if a if parcer is needed for this. Would like to structure around this insert, if possible.
xml address will be at:
http://aenergy.com/b.xml
mysql_query("INSERT INTO Articles (Title, ArticleID, Descript, Date) VALUES ('$TITLE', '$ARTICLEID', $DESCRIPT, CURRENT_TIMESTAMP)");
[I]sample xml:[/I]
<source>
<article>
<title>wind turbine energy</title>
<date> Weds, 22 Apr 2009 20:00:00</date>
<articleid>4435664</articleid>
<description>Summary information on the generation of electricity by clean means.<description>
</article>
<article>
<title>geothermal extration</title>
<date> Mon, 20 Apr 2009 18:00:00</date>
<articleid>4455211</articleid>
<description>The energy source as it evolves into a more practical alternative<description>
</article>
<source>