Welcome Guest, Not a member yet? Register   Sign In
how to take the url to became a variable
#3

[eluser]yudahebat[/eluser]
Code:
function choose_testi()
    {
        $id = $this->uri->segment(3);
        $query = $this->db->get('testimonial');
        $this->db->where('id_testimonial',$id);
        $user_array = $query->result_array();
            
        if(count($user_array) > 0)
        {
            foreach($user_array as $ua)
            {
                $data['tanggal'] = $ua['tanggal'];
                $data['email'] = $ua['email'];
                $data['nama'] = $ua['nama'];
                $data['isi'] = $ua['isi'];
            }
        }
        $this->load->view('adm_testimonial',$data);
    }

thx, Ive use it on my function

but there is a problem

how to call the adm_testimonial.php??

because on the url from the function that I make it makes me go to

Code:
http://localhost/ci2/adminpage/choose_testi/4

I want it became like this :
Code:
http://localhost/ci2/adminpage/adm_testimonial

help me please


Messages In This Thread
how to take the url to became a variable - by El Forum - 03-31-2009, 08:17 PM
how to take the url to became a variable - by El Forum - 03-31-2009, 08:20 PM
how to take the url to became a variable - by El Forum - 03-31-2009, 08:48 PM
how to take the url to became a variable - by El Forum - 03-31-2009, 09:30 PM
how to take the url to became a variable - by El Forum - 03-31-2009, 09:35 PM
how to take the url to became a variable - by El Forum - 03-31-2009, 09:56 PM
how to take the url to became a variable - by El Forum - 03-31-2009, 10:00 PM
how to take the url to became a variable - by El Forum - 03-31-2009, 10:04 PM
how to take the url to became a variable - by El Forum - 03-31-2009, 10:05 PM
how to take the url to became a variable - by El Forum - 03-31-2009, 10:09 PM
how to take the url to became a variable - by El Forum - 04-01-2009, 01:23 AM
how to take the url to became a variable - by El Forum - 04-01-2009, 06:11 AM
how to take the url to became a variable - by El Forum - 04-01-2009, 06:28 AM
how to take the url to became a variable - by El Forum - 04-01-2009, 06:36 AM
how to take the url to became a variable - by El Forum - 04-01-2009, 06:45 AM
how to take the url to became a variable - by El Forum - 04-01-2009, 06:55 AM
how to take the url to became a variable - by El Forum - 04-01-2009, 07:09 AM
how to take the url to became a variable - by El Forum - 04-01-2009, 07:14 AM
how to take the url to became a variable - by El Forum - 04-01-2009, 06:33 PM
how to take the url to became a variable - by El Forum - 04-01-2009, 06:40 PM
how to take the url to became a variable - by El Forum - 04-01-2009, 07:36 PM
how to take the url to became a variable - by El Forum - 04-01-2009, 08:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB