How to insert data with xml using php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kushaljutta
Forum Commoner
Posts: 50
Joined: Fri Dec 26, 2008 11:05 am

How to insert data with xml using php

Post by kushaljutta »

i need some information about inserting data in database with xml using php..


thanks in advance
pl_towers
Forum Newbie
Posts: 12
Joined: Tue Jan 27, 2009 12:59 pm

Re: How to insert data with xml using php

Post by pl_towers »

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

Post by kushaljutta »

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
Post Reply