答案 0 :(得分:0)
您可以尝试写作
$pack = json_encode($packs,true);
回声不足,恰好位于
$packs=data['packs'];
答案 1 :(得分:0)
$no = 1;
while($data = mysqli_fetch_array($findCustomer,MYSQLI_ASSOC)){
echo '
<tr>
<td>'.$no.'</td>
<td>'.$data['NAME'].'</td>
<td>'.$data['PHONE'].'</td>
<td>'.$data['STB_NUMBER'].'</td>
<td>'.$data['VC_NUMBER'].'</td>
<td>'.$data['agent_name'].'</td>
<td>'.$data['created_on'].'</td>';
echo '<td>';
$array =$data['packs'];
$pack = json_decode($array,true);
foreach ($pack as $value) {
echo 'Pack-Name:'.$value['pack_dsc']."<br>Pack-Amount:".$value['pack_base_prc']."<br>";
}
echo '</td>
</tr>';
$no++;
}