title: unserialize data from mysql
body: <p>in my mysql cell this is stored using serialize function </p>
  
  <pre><code>a:1:{i:0;s:275:"a:4:{s:8:"khghg_id";s:10:"foo1187";s:3:"uri";s:21:"foo/vtory/1187";s:4:"name";s:5:"nmart";s:5:"tuhlmb";a:3:{i:0;s:40:"knuujhs/201205/13_03_pceb9.jpg";i:1;s:40:"knuujhs/201205/13_03_0wlih.jpg";i:2;s:40:"knuujhs/201205/13_03_tq5wf.jpg";}}";}
  </code></pre>
  
  <p>i am trying to do unserialize</p>
  
  <p>i am using this code</p>
  
  <pre><code>$cell =$row9['attachment'];
  $list = unserialize($cell);
  $info = unserialize($list[0]);
  var_dump($info);
  </code></pre>
  
  <p>when i am trying with this i am getting error bool(false) error
  so i tried with parse_str
  with parse_str i did not get any error</p>
  
  <pre><code> parse_str($cell,$list );
  </code></pre>
  
  <p>but i am not getting the output in my database 
  i am storing the output in database and i am submitting the query to database .everything is getting stored other than this unserialize values .here u can note that there are </p>
  
  <p>khghg_id which is foo1187
  uri  which is foo/vtory/1187
  name which is nmart<br>
  i want to store these details in my database so i am using  </p>
  
  <pre><code>'.$info['khghg_id'].'   for sending the data to mysql but mysql stores everything  other than  all unsterilized  values
  </code></pre>