是啊!我可以像这样读取xml文件吗:
<items>
<item>
<id_product>1</id_product>
<title>Product title</title>
<description><p>This is a<b>PRODUCT</b></p></description>
</item>
<item>
<id_product>2</id_product>
<title>Another Product title</title>
<description><p>This is the second <b>PRODUCT</b></br><a href="#">click here</a></p></description>
</item>
</itmes>并使用php将其写入数据库?我的想法是我也想用格式(锚点、粗体、斜体、p等)来写它。
发布于 2014-03-22 01:41:41
查看PHP's XML Parser的PHP手册
您应该能够使用这些工具获取信息,然后将其写入数据库。
https://stackoverflow.com/questions/22565749
复制相似问题