下载并安装Datatables后,我下载了文件 that can be used to connect into a postgresql database并正确更改了以下行:
$aColumns = array( "ab", "cd");
/* Indexed column (used for fast and accurate table cardinality) */
$sIndexColumn = "id";
/* DB table to use */
$sTable = "bacon";
/* Database connection information */
$gaSql['user'] = "user";
$gaSql['password'] = "pass";
$gaSql['db'] = "db";
$gaSql['server'] = "host";
配置db链接后,我注意到json有以下值:
{
"sEcho": 0,
"iTotalRecords": 2,
"iTotalDisplayRecords": 2,
"aaData": [
["bacon", "salad"],
["1", "2"]
]
}
我相信它可以(因为它返回数据)
但是当我打开主页面(code can be opened here )时,结果是找不到匹配的记录
我试图找到关于所应用解决方案的一些指导here,但它没有给我带来成功。
我能错过什么?
提前致谢。