javascript - Retrieving data from sqlite3 via ajax from php to js -
in js want read data sqlite3 dbase. here ajax code: function getheatercfg(rdate){ var data = { isdaterequested : 1, reqdate : rdate }; var jdata = json.stringify(data); alert(jdata); $.ajax({ url: 'getlatestcfgheater.php', type: 'post', datatype: 'json', data: {'querysettings': jdata}, success: function(data) { console.log("success"); //parse data } }); } and here php code: <?php function var_error_log( $object=null ){ ob_start(); // start buffer capture var_dump( $object ); // dump values $contents = ob_get_contents(); // put buffer variable ob_end_clean(); // end capture error_lo...