Welcome Guest, Not a member yet? Register   Sign In
How to use variable in Active record SELECT
#3

[eluser]wowdezign[/eluser]
Did you try this?
Code:
function findOrphans($segment, $id, $db_table){
     $tablename = explode("-", $db_table);
    $tableid = $tablename[1]."_id";
    
    $data = array();
     $this->db->select($tableid.',name');


Messages In This Thread
How to use variable in Active record SELECT - by El Forum - 01-05-2010, 09:35 AM
How to use variable in Active record SELECT - by El Forum - 01-05-2010, 09:37 AM
How to use variable in Active record SELECT - by El Forum - 01-05-2010, 11:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB