$id = $this->input->post('game_id'.$i); $answer['ans'][] = $this->input->post('ans'.$i); $tmp = $this->input->post('game' . $row['id']);