如何解码json中多行的数据并使用主键日期显示在php表中

date , 
details {
  "target1"  : "test1",
  "count1"   : "3",
  "remarks1" : "done",
  "target2"  : "test2",
  "count2"   : "3",
  "remarks2" : "done",
  "target3"  : "test3",
  "count3"   : "3",
  "remarks3" : "running"                            
}

Where date(pk) and details are two fields of a table. Display rows in tables of particular date.

I dont really know what "php tables" are. But you probably need the functions json_decode() and array_merge().

For each row fetched from DB:

$table[] = array_merge($row['id'], json_decode('details'))