Results 1 to 3 of 3

Thread: Some questions...

  1. #1
    Join Date
    May 2010
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Some questions...

    I want to update my XML using PHP... but how?
    -I want to update...
    ----<member>
    Here's my XML :
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <members>
    <member>
    <name>TEST</name>
    </member>
    </members>
    Also, how to count the number of data(<member>) in the XML?

    --
    Sorry if I'm not clear...

  2. #2
    Join Date
    May 2010
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I want to know if there's such thing as
    -create data in XML
    using PHP
    like...

    Name : _____________(<< text box) (for example.. Name : Maaku)
    ---------Submit-----------------
    and when I click the submit button it will add a new data in XML

    So this
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <members>
    <member>
    <name>TEST</name>
    </member>
    </members>
    Will turn into :
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <members>
    <member>
    <name>Maaku</name>
    </member>
    <member>
    <name>TEST</name>
    </member>
    </members>

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    There are several xml function libraries for PHP. Take a look at them and see if they'll work.
    One of several options: http://www.php.net/manual/en/book.xml.php
    What you are doing is probably the hard way-- why not use a database? That's the easiest/best way.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •