Skip to content

Error when use the aritmatic command * and + in $this->datatabel->select( ); #125

@Daiku88

Description

@Daiku88

i got error when use igniter in select array when use * and + aritmatik sql

this the code :

function json() {
$this->datatables->select('tj.tj_qty1 * tj.tj_harga1+tj.tj_qty2*tj.tj_harga2+tj.tj_qty3 * tj.tj_harga3 + tj.tj_qty4 * tj.tj_harga4 as total');
$this->datatables->from('tj_detail tj');
$nol = array('0');
$this->datatables->where('tj.status',$nol);
return $this->datatables->generate();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions