cygwin, php7.x and sqlite3
cygwin, php7.x and sqlite3
Link to test case:
Running basic example
Debugger code:
Error messages shown:
<br />
<b>Fatal error</b>: Uncaught Error: Call to undefined function DataTables\Database\Driver\json_encode() in /cygdrive/c/Users/DP1043/OneDrive - CommScope/Documents/npi-att/lib/Database/Driver/SqliteQuery.php:61
Stack trace:
0 [internal function]: DataTables\Database\Driver\SqliteQuery::connect('')
1 /cygdrive/c/Users/DP1043/OneDrive - CommScope/Documents/npi-att/lib/Database.php(66): call_user_func('DataTables\Data...', Array)
2 /cygdrive/c/Users/DP1043/OneDrive - CommScope/Documents/npi-att/lib/Bootstrap.php(53): DataTables\Database->__construct(Array)
3 /cygdrive/c/Users/DP1043/OneDrive - CommScope/Documents/npi-att/lib/DataTables.php(33): require('/cygdrive/c/Use...')
4 /cygdrive/c/Users/DP1043/OneDrive - CommScope/Documents/npi-att/controllers/staff.php(8): include('/cygdrive/c/Use...')
5 {main}
thrown in <b>/cygdrive/c/Users/DP1043/OneDrive - CommScope/Documents/npi-att/lib/Database/Driver/SqliteQuery.php</b> on line <b>61</b><br />
Description of problem:
Dear team,
I am not able use exampls with sqlite. I created tables and referred in lib. Could you please help to run example?
$sql_details = array(
"type" => "Sqlite", // Database type: "Mysql", "Postgres", "Sqlserver", "Sqlite" or "Oracle"
"user" => "", // Database user name
"pass" => "", // Database password
"host" => "", // Database host
"port" => "", // Database connection port (can be left empty for default)
"db" => "OneCell", // Database name
"dsn" => "", // PHP DSN extra information. Set as charset=utf8mb4
if you are using MySQL
"pdoAttr" => array() // PHP PDO attributes array. See the PHP documentation for all options
);
Answers
updated php with json support, then all started working.
thanks in advance..