[eluser]shinokada[/eluser]
I need to use a variable in $this->db->select();
Something like this,
$this->db->select('$tableid,name');
Code:
function findOrphans($segment, $id, $db_table){
$tablename = explode("-", $db_table);
$tableid = $tablename[1]."_id";
$data = array();
$this->db->select('$tableid,name');
But I am not sure if I can.
Can anyone tell me how to please?