[eluser]johansonevR[/eluser]
hello,
i am new to this forum as i am new to CI. However i am looking at the blog tutorial.
well the problem is here i don't know how to explain it exactly but i will give it a try.
i have a function:
user clicks on a link and gets the data from view().
Code:
function view(){
$data['contents']=$this->db->get('adv');
$this->load->view("adv_view_view",$data);
}
the problem is that this function does not know which table row to select, it selects them all. How to select the id of the table i want to use dynamically, i want my db query to become
Code:
$this->db->query("select * from adv where id='$id';");
i want to get the the variable $id from the previous page and use it in the query.