Skip to content

Using the library in code #8

Open
@pre2612

Description

@pre2612
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <script type="text/javascript" src="jsontohtml.js"></script>
    </head>
    <body>

        <div> 
            <?php

           // echo $jsonResult;
              error_reporting(E_ALL);
             ini_set("display_errors", 1);
             include 'include/weather_data.php';
             include 'include/getJson.php';
            $jsonValue = new getjson();
            $table = 'WEATHER_SIMPLE_FORECAST';
             $jsonResult = $jsonValue->getJsonData($table);
            print_r($jsonResult);

            ?>

            <script type="text/javascript">
                var jsonHtmlTable = ConvertJsonToTable(eval([$jsonResult]), 'jsonTable', null, 'Download');
                document.write(jsonHtmlTable);
            </script>

       </div>
    </body>
</html>

Could you please tell me why is it not displaying anything?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions