Click here to Skip to main content
15,893,668 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am getting result when I am using print_r(). Now I want to separate the result and save it to database. And before I want to make a XML file with the print_r() result.

My Code:
PHP
print_r($scrapData);


That give me the output is:

Array ( [0] => Array ( [company] => 1JANATAMF [lastTrade] => 6.70 [changeAmount] => 0.00 [changePercent] => 0.00% ) [1] => Array ( [company] => 1STICB [lastTrade] => 855.00 [changeAmount] => -5.30 [changePercent] => -0.62% ) [2] => Array ( [company] => 1STPRIMFMF [lastTrade] => 19.90 [changeAmount] => 0.10 [changePercent] => 0.51% ) ...........
........
........
[287] => Array ( [company] => ZEALBANGLA [lastTrade] => 8.80 [changeAmount] => 0.40 [changePercent] => 4.76% ) )


Now, I want to make a XML file from this result. And after than I want to separate the data to save into MySQL DatatBase.

Can you help me please.

Thank you.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900