Wordpress Database fetching - set of options

Discussion in 'PHP' started by trecords, Oct 20, 2011.

  1. #1
    Hi,

    I have fetched datafrom postmeta database of wordress output is:
    a:2:{i:0;a:7:{s:2:"id";s:2:"14";s:12:"variation_id";s:0:"";s:9:"variation";s:0:"";s:4:"name";s:12:"Test Product";s:3:"qty";s:1:"1";s:4:"cost";s:5:"20.00";s:7:"taxrate";s:6:"0.0000";}i:1;a:7:{s:2:"id";s:2:"14";s:12:"variation_id";s:0:"";s:9:"variation";s:0:"";s:4:"name";s:12:"Test Product";s:3:"qty";s:1:"1";s:4:"cost";s:5:"20.00";s:7:"taxrate";s:6:"0.0000";}}
    HTML:
    So all info is there are but I don`t know how to get any specific data from this output. Ex i need to get "Test Product" name and how can i do this on php can you help me plz?
     
    trecords, Oct 20, 2011 IP
  2. trecords

    trecords Well-Known Member

    Messages:
    145
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #2
    HUH! OK guys I find it, this array data stored into database.
     
    trecords, Oct 20, 2011 IP