$result3=$this->hrdb->select(array('concat(eb.first_name," ",eb.middle_name, " ",eb.last_name,"") as emp_name','eb.id','pp.emp_id','pp.gross_monthly','pp.amount as net_amount','pp.payslip_id','eor.dep_id'))
->where('pp.emp_id' not_in (select(array('pp.gross_monthly','pp.emp_id','pp.amount as net_amount','pp.payslip_id'))),Null,FALSE)
->from('payroll_payments as pp')
->join('employee_basic as eb','pp.emp_id=eb.id','left')
->join('employee_org as eor','pp.emp_id=eor.emp_id','left')
->order_by($_field, $params['_sort_direction'])
->where(array('pp.npyear'=>$params['nep_year'],'pp.npmonth'=>$params['nep_month2']))
->get()
->result();
查詢是我寫的查詢,但問題出現了,告訴使用哪裏都不在CI
Parse error: syntax error, unexpected T_STRING in /var/www/html/vianet_db/htdocs/addons/shared_addons/modules/hrm/models/payslip_m.php on line 558
看起來像你錯過了一些引號。 – bansi