Failed to run Server Side Examples
Failed to run Server Side Examples
Hi,
I'm new to DataTables, and I just tired to see how server side examples work but none of them show the table and instead a warning is shown saying: [quote] DataTables warning (table id = 'example'): DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error. [/quote]
For example I tried to run row_details and I got this warning, here is my DataTable Debugger result: http://debug.datatables.net/uvizew
Please help me,
Thanks.
I'm new to DataTables, and I just tired to see how server side examples work but none of them show the table and instead a warning is shown saying: [quote] DataTables warning (table id = 'example'): DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error. [/quote]
For example I tried to run row_details and I got this warning, here is my DataTable Debugger result: http://debug.datatables.net/uvizew
Please help me,
Thanks.
This discussion has been closed.
Replies
Send us your query
[code]
Warning: include(C:/wamp / www //datatables/mysql.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\DataTables-1.9.2\examples\server_side\scripts\details_col.php on line 24
[/code]
You need to modify the files in examples/server_side/scripts to include a file which makes the db connection. Something like:
[code]
<?php
$gaSql['user'] = "";
$gaSql['password'] = "";
$gaSql['db'] = "";
$gaSql['server'] = "localhost";
$gaSql['type'] = "mysql";
?>
[/code]
Allan
Such a stupid I am!
I should have removed the line (or maybe toggle comment):
[quote]/* REMOVE THIS LINE (it just includes my SQL connection user/pass) */
include( $_SERVER['DOCUMENT_ROOT']."/datatables/mysql.php" ); [/quote]
Hamed.
Allan