douzi6060 2012-06-06 20:39
浏览 22
已采纳

使用php 5.0将xml上传到Mysql数据库[关闭]

I have a xml as follows-

<?xml version="1.0" encoding="UTF-8"?>
<result>
<item>
    <mid>2557</mid>
    <merchantname>DVD Players</merchantname>
    <linkid>1000012</linkid>
    <createdon>2006-09-30/20:04:17</createdon>
    <sku> JR-E-12324</sku>
    <productname>Sony Blu-Ray DVD Player</productname>
    <category>
        <primary>Electronics</primary>
        <secondary>TV . Video</secondary>
    </category>
    <price currency="JPY">59704</price>
    <upccode>4901340995017</upccode>
    <description>
        <short>Awesome Pictures</short>
        <long>Watch all your HD-DVDs</long>
    </description>
    <keywords>DVD Player~~BluRay~~SONY</keywords>
    <linkurl>http://somelink.com</linkurl>
    <imageurl>image.gif</imgurl>
</item>

I need to upload above xml to mysql table sing php. can someone help ?thanks

  • 写回答

1条回答 默认 最新

  • doxp30826 2012-06-06 20:43
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统