 |
|
Code (PHP)
JSON ครับ
{
"select * from data where product = 'xxx' and data->> 'type'='Monitor'": [
{
"id" : 684886, //ID ที่1
"product" : "xxxx",
"data" : "{\"id\": \"002F000C424E430220313031\", \"afr\": 14.699999809265, \"car\": \"yamaha\"}",
"created_at" : "2019-04-09T13:19:11Z"
},
{
"id" : 645534, //ID ที่2
"product" : "xxxx",
"data" : "{\"id\": \"002F000C424E430220313031\", \"afr\": 14.699999809265, \"car\": \"yamaha\"}",
"created_at" : "2019-04-09T13:19:11Z"
},
{
"id" : 678245,
"product" : "xxxx", //ID ที่3
"data" : "{\"id\": \"002F000C424E430220313031\", \"afr\": 14.699999809265, \"car\": \"yamaha\"}",
"created_at" : "2019-04-09T13:19:11Z"
},
{
"id" : 623452, //ID ที่4
"product" : "xxxx",
"data" : "{\"id\": \"002F000C424E430220313031\", \"afr\": 14.699999809265, \"car\": \"yamaha\"}",
"created_at" : "2019-04-09T13:19:11Z"
}
]}
อยากให้ปลิ้นออกมาเป็นจำนวนตัวเลข ตย.นับจาก id ข้างบนมี id มา4อันให้มัน ปลิ้นเลข4ออกมางี้ครับ
Tag : HTML, JavaScript
|
|
 |
 |
 |
 |
Date :
2019-05-29 15:04:55 |
By :
nuithestd |
View :
1059 |
Reply :
1 |
|
 |
 |
 |
 |
|
|
|
 |