I am trying to pull JSON data path stored inside MySQL database but I am getting an error message when executing the PHP command.
$json = json_decode($response); $json_feed = "data->value"; // i am pulling this data from my database foreach ($json->$json_feed as $elem) { // getting an conversion error in this line ..... }
->
. You would be accessing a property that is literally nameddata->value
with this.