Welcome Guest, Not a member yet? Register   Sign In
How to pass parameter via URL?
#1

[eluser]Sinclair[/eluser]
Hi,

I need to pass a parameter in the second segment of an URL in the index function of the controller.

My model function is this:
Code:
function getAnunZone($pzone) {
        $query = $this->db->query("select id, name from atw_anu where id_zone = '".$pzone."' ", $this->uri->segment(2));
        return $query->result();
    }

This is not working. What I'am doing wrong?

Best Regards.


Messages In This Thread
How to pass parameter via URL? - by El Forum - 10-13-2009, 02:48 PM
How to pass parameter via URL? - by El Forum - 10-13-2009, 02:59 PM
How to pass parameter via URL? - by El Forum - 10-13-2009, 03:03 PM
How to pass parameter via URL? - by El Forum - 10-13-2009, 03:14 PM
How to pass parameter via URL? - by El Forum - 10-13-2009, 03:25 PM
How to pass parameter via URL? - by El Forum - 10-13-2009, 03:29 PM
How to pass parameter via URL? - by El Forum - 10-13-2009, 03:36 PM
How to pass parameter via URL? - by El Forum - 10-13-2009, 05:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB