[eluser]jigen7[/eluser]
hi im wondring how can you pass a vriable with a data on it to a controller in codeigniter
View:
Code:
<?=anchor('main/edit?id='.$row->id, 'Edit Data');?>
i know it wrong so can anyone recode this?? i want to pass the value from the $row->id to the controller
then in the Controller Function
Code:
$this->db->where('id', $_GET['id']);
$data['query'] = $this->db->get('download');
$this->load->view('main_edit',$data);
also here i know its wrong anyone can help me out here thx