How does php write and read data to the database based on the format ??? HTMLcode & lt ;! DOCTYPEhtmlPUBLIC & quot;-// W3C // DTDXHTML1.0Transitional // EN & quot; http: // How does www php write data to and read data in the database according to the format ???
HTML code
Untitled DocumentWhen: 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