问题描述
我需要以下表达式来使用名为$sql_details = array(
'user' => 'root','pass' => '','db' => 'test','host' => 'localhost'
);
if($_REQUEST['action']=='admin'){
$table = 'tbl_admin';
$primaryKey = 'admin_id';
$columns = array(
array( 'db' => 'firstname','dt' => 0 ),array( 'db' => 'lastname','dt' => 1 ),array( 'db' => 'email','dt' => 2 ),array( 'db' => 'date_of_created','dt' => 3,'formatter' => function( $d,$row ) {
return date( 'd-m-Y',strtotime($d));
}
)
);
require 'datatables/ssp.class.php';
//$where = "is_active =1 order by DESC date_of_created"; //tried this
//$where = "is_active ='1'"; //tried this
$where = "is_active =1"; // tried this
echo json_encode(
SSP::simple( $_GET,$sql_details,$table,$primaryKey,$columns,null,$where )
);
}
的变量的值,而不是StateTagName
的硬编码值。我该怎么办?
CurrentEastUSHDInsightsObject
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)