I am using this code

    global $wpdb;
$alldatauserr = "SELECT option_value FROM wp_options";
$alldatauserrresult = $wpdb->get_results($alldatauserr);
    $dataxyz = unserialize($alldatauserrresult);
    $jhvbdjhd = json_encode($dataxyz);

shows this error https://drive.google.com/file/d/0B9uqoluJ-ZTLamlHN0s0VWFsSkU/view?usp=drivesdk

Read more here: Sql fetch data from database in json format


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: