i need some information about inserting data in database with xml using php..
thanks in advance
How to insert data with xml using php
Moderator: General Moderators
-
kushaljutta
- Forum Commoner
- Posts: 50
- Joined: Fri Dec 26, 2008 11:05 am
Re: How to insert data with xml using php
try using simple xml to loop through your data
-
kushaljutta
- Forum Commoner
- Posts: 50
- Joined: Fri Dec 26, 2008 11:05 am
Re: How to insert data with xml using php
my xml file is
<?xml version="1.0"?>
<entries>
<entry>
<date>1</date>
<text>bush</text>
</entry>
<entry>
<date>2</date>
<text>obama</text>
</entry>
<entry>
<date>3</date>
<text>laden</text>
</entry>
</entries>
so i want to insert these <text> data into database....
can you give some sample code
<?xml version="1.0"?>
<entries>
<entry>
<date>1</date>
<text>bush</text>
</entry>
<entry>
<date>2</date>
<text>obama</text>
</entry>
<entry>
<date>3</date>
<text>laden</text>
</entry>
</entries>
so i want to insert these <text> data into database....
can you give some sample code