IM從RSS數據拉,我想補充的標題和描述到同一行(不同領域)在MySQL數據庫進入陣列的成表PHP
$result = $xml->xpath('//title'); //finding the title tags in the xml document and loading into variable
$result1 = $xml->xpath('//description'); //finding the title tags in the xml document and loading into variable
我加載信息到變量,但不明白我可以如何插入到一個稱爲數據的MySQL表?
這聽起來很容易,但即時通訊作爲一個數組掙扎。
什麼是數組? – 2012-04-14 01:41:53
您正在閱讀的RSS文件的結構是什麼?你在使用SimpleXML嗎? – nnichols 2012-04-14 02:04:40