I need to fetch value from an array .I need to fetch the value name,value,user_id from an given array
$inner_content='[{"name":"radio","value":"1","id":"1","user_id":"[email protected]","web":"571710720","type":"poll_info","pg":"question_response"},{"name":"fav-color[]","value":"blue"}]'
$id='5'; //value given for expample.
$inner="select * from user_response where POLL_ID=$id";
$inner1=mysql_query($inner);
while($ifet=mysql_fetch_assoc($inner1))
{
$inner_content = $ifet['CONTENT_VALUES'];
$data1 = json_decode($inner_content);
$test1[]=array('name'=>$data1->name);
}
$data1[0]->nameand so on