Page 1 of 1

How to insert data with xml using php

Posted: Tue Jan 27, 2009 11:23 am
by kushaljutta
i need some information about inserting data in database with xml using php..


thanks in advance

Re: How to insert data with xml using php

Posted: Tue Jan 27, 2009 1:08 pm
by pl_towers
try using simple xml to loop through your data

Re: How to insert data with xml using php

Posted: Thu Jan 29, 2009 5:34 am
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