hey i've tried to DECODE my JSON data like this : `
$json = file_get_contents("http://localhost/php/service.php?rquest=searcht&user=".$user);
$final_res = html_entity_decode($json);
foreach ($final_res as $thedata->user)
{
foreach ($thedata as $value) { ?>
<tr>
<td ><? echo $value['No']?> </td>
<td><?echo $value['user']?></td>
}
}
` the decode data works fine with output JSON, but when i tried to foreach the JSON data, its doesnt work, but..in other case i use this foreach the same way to print my data with Select * data query to other page. its work, but i use this foreach to same way, but the output is Invalid argument supplied for foreach() please tell me if i do a mistake...