1 2 3 4 5 6 7 | $db = \Config\Database::connect(); $orderid = $order_resultval->userid; $builder = $db->table('tb_customer'); $builder->select('*'); $builder->where('id', $orderid); $query = $builder->get(); $details = $query->getResult(); |