How does php write and read data to the database based on the format?

Source: Internet
Author: User
Tags php write
How does php write and read data to the database based on the format ??? HTMLcode & lt ;! DOCTYPEhtmlPUBLIC & quot;-W3CDTDXHTML1.0TransitionalEN & quot; www. w3.orgTRxhtml1DTDxhtml1-transitional. dtd & quot; & gt; how does php write and read the database in the format ???
HTML code
  
  Untitled Document

When: postdb [sku_name] [primary 50] = Black postdb [sku_sku] [primary 50] = M postdb [sku_price] [primary 50] = 100 postdb [sku_shopid] [primary 50] = 1000 postdb [sku_storage] [primary 50] = mj1 postdb [sku_name] [primary 55] = yellow postdb [sku_sku] [primary 55] = X postdb [sku_price] [primary 55] = 77 postdb [sku_shopid] [primary 55] = 1000 postdb [sku_storage] [000055] = mj2postdb [sku_name] [7_60] = Green postdb [sku_sku] [7_60] = L postdb [sku_price] [7_60] = 55 postdb [sku_shopid] [7_60] = 1000 postdb [sku_storage] [7_60] = mj3 postdb [sku_name] [7_65] = Red postdb [sku_sku] [7_65] = S postdb [sku_price] [7_65] = 90 postdb [sku_shopid] [7_65] = 1000 when postdb [sku_storage] [7_65] = mj4, the format of how to write the shopinfo field in the database in the PHP file is as follows (currently I only extract four for reference, but there may be N !) Black/M/100/1000/mj1/@ Yellow/X/77/1000/mj2/@ Green/L/55/1000/mj3 // @ Red/S/90/1000/mj4 // @ How can I call the data separately at the front-end, for example: $ rs [name] = $ rs [sku] = M $ rs [price] = 100 $ rs [shopid] = 1000 $ rs [storage] = mj1 $ rs [name] = Yellow $ rs [sku] = X $ rs [price] = 77 $ rs [shopid] = 1000 $ rs [storage] = mj2 $ rs [name] = Green $ rs [sku] = L $ rs [price] = 66 $ rs [shopid] = 1000 $ rs [storage] = mj3 $ rs [name] = Red $ rs [sku] = S $ rs [price] = 90 $ rs [shopid] = 1000 $ rs [storage] = mj4 I only write four, but not just the four, there may be N

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.