server_processing.php中数据源来自不同的表 #34

Open
heather9829 opened this Issue Oct 26, 2016 · 0 comments

Projects

None yet

2 participants

@heather9829

array( 'db' => 'id', 'dt' => 'ID'),
array( 'db' => 'CCC', 'dt' =>'CCC'),
array( 'db' => 'Staff_No', 'dt' =>'No'),
array( 'db' => 'Step', 'dt' =>'Step' ),
array( 'db' => 'Unit', 'dt' => 'Unit' ),
array( 'db' => 'Staff_name', 'dt' =>'Name'),
array( 'db' => 'Broadband', 'dt' =>'Broadband' ),
array('db' => 'Title','dt' => 'Position'),
array('db' => 'status','dt' => 'Status'),

array('db'        => 'CCC_date','dt' => 'CAE Exp',),
array('db'        => 'Sup_elapsedtime','dt' => 'Sup Exp')
);

最后两个array和之前的array并不是从一个表中读取数据,并且需要在php中写一个function计算作为最终数值,请问array可以自定义值吗?我可以写一个sql语句从另外一个表中查询,把得到的结果给array('db')吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment