I have problem. I know how to extract data from csv or txt files into php and then insert them into mysql, but how to do this with wml? I just have simple *.wml file with data.

Please help me!

Thanks

    Hi,

    post an example file and some information about how you want to extract the data (and which data you want to extract).

    Thomas

      Lets say this is wml file.

      I need to extract this data for example:

      $xx1=id;
      $xx2=mark;
      $xx3=model;
      etc...

      <?xml version="1.0" encoding="UTF-8" ?>
      - <NewVehicles>
      - <vehicles>
      - <vehicle>
      <id>29054</id>
      <mark>Bmw</mark>
      <model>525dA</model>
      <year>2000</year>
      <mileage>158800</mileage>
      <motordispl>2.5</motordispl>
      <motorpower>120</motorpower>
      <body>vieglâ automaðîna</body>
      <bodytype>sedans</bodytype>
      <gearbox>Automâtiska</gearbox>
      <color>pelçka</color>
      <fuel>Dîzelis</fuel>
      <price>19800</price>
      <discount>17000</discount>
      <export />
      - <addons>
      - <addon>
      <name>electric windows</name>
      </addon>
      - <addon>
      <name>ABS</name>
      </addon>
      - <pictures> <aadress>29054_1.jpg</aadress>
      <aadress>29054_2.jpg</aadress>
      <aadress>29054_3.jpg</aadress>
      </pictures>
      </vehicle>
      - <vehicle>
      <id>35877</id>
      <mark>Saab</mark>
      <model>9-5 Wagon</model>
      <year>2000</year>
      <mileage>152900</mileage>
      <motordispl>2</motordispl>
      <motorpower>110</motorpower>
      <body>vieglâ automaðîna</body>
      <bodytype>universâls</bodytype>
      <gearbox>Manuâla</gearbox>
      <color>sarkana</color>
      <fuel>Benzîns</fuel>
      <price>14900</price>
      <discount>14400</discount>
      <export />
      - <addons>
      - <addon>
      <name>ABS</name>
      </addon>
      - <addon>
      <name>AirBag 4</name>
      </addon>
      </addons>
      - <pictures>
      <aadress>35877_1.jpg</aadress>
      <aadress>35877_2.jpg</aadress>
      <aadress>35877_3.jpg</aadress>
      </pictures>
      </vehicle>
      - <vehicle>
      </vehicles>
      </NewVehicles>

        Write a Reply...