body:[
{"Bucket_name": "Wulinag09", "status": "0", "cdatetime": "1385619473", "used_capacity": "0", "total_capacity": "0", " Region ":" Beijing "},
{"Bucket_name": "Wulinag08", "status": "0", "cdatetime": "1385619360", "used_capacity": "0", "total_capacity": "0", " Region ":" Beijing "},
{"Bucket_name": "Wulinag07", "status": "0", "cdatetime": "1385619169", "used_capacity": "0", "total_capacity": "0", " Region ":" Beijing "},
{"Bucket_name": "Wulinag06", "status": "0", "cdatetime": "1385618406", "used_capacity": "0", "total_capacity": "0", " Region ":" Beijing "},
{"Bucket_name": "Wulinag05", "status": "0", "cdatetime": "1385618247", "used_capacity": "0", "total_capacity": "0", " Region ":" Beijing "},
{"Bucket_name": "Wulinag04", "status": "0", "cdatetime": "1385618074", "used_capacity": "0", "total_capacity": "0", " Region ":" Beijing "},
{"Bucket_name": "Wulinag03", "status": "0", "cdatetime": "1385435678", "used_capacity": "0", "total_capacity": "0", " Region ":" Beijing "},
{"Bucket_name": "Wulinag02", "status": "0", "cdatetime": "1385435395", "used_capacity": "0", "total_capacity": "0", " Region ":" Beijing "}
]
This data I do not know what form, how to list the data for each row there are 8 rows of data, I want to output 8 rows in the form of a front-end table, and then use variables to read each row of data such as:
$rs [Bucket_name] can get wulinag09
$rs [status] can get 0
$rs [Cdatetime] can get 1385619473
In turn, the example pushes
Reply to discussion (solution)
JSON data format, meaning that the body value is the entire back of the content, the complete code is as follows
Bucket_name |
Status |
Cdatetime |
Used_capacity |
Total_capacity |
Region |
$value) {?>
$var) {echo "
$var | ";}? >
Results: