Welcome Guest, Not a member yet? Register   Sign In
Add extra columns to database generated table
#2

[eluser]Tominator[/eluser]
I'm not sure, but I think you can do something like this:

Code:
...

$field = $this->db->get('field',$config['per_page'],$this->uri->segment(1)); // just saves that

foreach ( $field->result_array() as $row )
{
    $data['records'][] = $row + array('extra_column' => 1); // adds extra column
}

...

If this works, you can add as many columns as needed.

Tom.


Messages In This Thread
Add extra columns to database generated table - by El Forum - 02-22-2012, 01:06 AM
Add extra columns to database generated table - by El Forum - 02-22-2012, 10:29 AM
Add extra columns to database generated table - by El Forum - 02-22-2012, 10:27 PM
Add extra columns to database generated table - by El Forum - 02-23-2012, 12:29 PM
Add extra columns to database generated table - by El Forum - 02-23-2012, 01:28 PM
Add extra columns to database generated table - by El Forum - 02-24-2012, 02:27 AM
Add extra columns to database generated table - by El Forum - 02-24-2012, 09:13 AM
Add extra columns to database generated table - by El Forum - 02-26-2012, 08:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB