Sanitise data into variables

I have some data which I retrieve via an API, 2 examples are attached.

I want a PHP script to sanitise the data so each relevant bit of information can be mapped into a variable ready for posting to a database.

Once the script is written it should hopefully automatically read the contents of a text file and then map them into a list of relevant variables.

Also note that there will be arbitrary numbers of products, so for example one order might just have one product ("product-1"), while another might have 3 for example ("product-1:, "product-2", "product-3").

If you need a specific list of variables I want the data to be mapped to then please let me know.

So for example I want it to use this:
"orders_id":"15132","customers_id":"7729","customers_name":"John Smith","customers_company":"",

to output this
$customers_name='John Smith',

技能: 数据处理, MySQL, PHP, 软件构架

查看更多: bit of data, product data api, want product data, retrieve data text file php, php specific data text file, map text data database, posting data api, software read numbers, data posting software, variables text file, variable data php, retrieve map data, read variables text file, bing map file format, data api examples, data entry experiences include typing electronic file, retrieve information php script, mapkit save map file, php script read attached file, data api php example

( 2个评论 ) United Kingdom

项目ID: #6589472

5 威客就此工作平均出价 $57


Hello! With 99% completion rate, 700 successfully completed projects, and a 5.00 reputation (maximum possible, 5.0) (Yes, not even 4.99 average rating, can be verified on my profile page !!)... you can never go wron 更多

$105USD 在1天里

Hi sir, My name is Leonardo Medina, and I´m from Brazil. I have lots of experience in PHP. Please drop me a line, so we can discuss this project in details and I can make a proper bid. I'm an experienced Web D 更多

$77USD 在1天里

Dear Sir ! * Are you looking for a best Team ? and highest quality of Product? If yes, so please read our quotes below We never placed bid on any project if we not sure that we can finish it with 100%. So please co 更多

$54USD 在1天里

Hello, my name is Fernando, from Brazil, work on I.T since 2007 and i can help you. UPDATE 15/10/2014 15:47 (BRT): Understood, i can do that easily. Accept my bid and i can start today, Fernando.

$25 USD 在2天内

************** Summary ****************** * * * I am a Web developper, expert in * * Wordpress, * * I developped themes * * and templates using * * HTML5, CSS3 and PHP * * 更多

$25 USD 在2天内