的這裏是我的json
對象識別JSON對象由不同數量的項目
[
{
"grup":"",
"barkod":"1234",
"amount":"1",
"selling price":"215",
"cost":"68.69"
},
{
"grup":"4444",
"barkod":"",
"ammount":"1",
"selling price":"49.9",
"cost":"75"
},
{
"grup":"3333",
"barkod":"091986 ",
"amount":"1",
"selling price":"69.9",
"cost":"16.56"
},
{
"cost":"300",
"pay type":"cash",
"taksit":"1"
},
{
"cost":"200",
"pay type":"BANK",
"taksit":"7"
},
{
"idNo":""
}
]
此對象通過AJAX PHP的服務器發送。然後,把它變成一個PHP數組:
$datax = json_decode(file_get_contents("php://input"));
欲用於前3個元素運行刀片statment爲table1
, 爲4和5的元件上
table2
等(數可以改變)
請問你能告訴我你已經用PHP寫的側什麼? –
實際上前3個元素代表樹產品的銷售信息。和4至5元代表付信息 –
你剛纔問了一個含糊不清的問題我想看到你的努力,你有多少呢? –