Hi
Manish Bisht píše v Po 17. 07. 2017 v 23:02 +0530:
I have created a new progress.php file in root directory and when I open this file in browser it doesn't show me the data.
use PhpMyAdmin\DatabaseInterface; $GLOBALS['dbi']->selectDb($cfgRelation['db']); $sql_query = 'SELECT * FROM ' . $cfgRelation['progress'] . ' WHERE type = "export"'; $result = $GLOBALS['dbi']->query($sql_query); $result = $GLOBALS['dbi']->fetchRow($result); echo json_encode($result); and when I add one extra line(mentioned below) it show me the data but with navigation and tabs which I don't need. include_once 'libraries/common.inc.php'; I think this might be due to the some security reason. Any way I can show data on this page in JSON format.
You need to pass ajax_request in the request in case you want it to output JSON only.