SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    Non-Member Andy Forsberg's Avatar
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    639
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What's the easiest way to put XML data into a MySQL database?

    What's the easiest way to put XML data into a MySQL database?

  2. #2
    SitePoint Guru asterix's Avatar
    Join Date
    Jun 2003
    Posts
    847
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    update mytable
     set myfield="<root/>"
     where mypk = $somevalue
    Is that what you were looking for?

  3. #3
    Non-Member Andy Forsberg's Avatar
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    639
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If I understood what it meant, maybe.

  4. #4
    SitePoint Guru asterix's Avatar
    Join Date
    Jun 2003
    Posts
    847
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It means use a normal update. Put the raw XML in the field...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •