Welcome Guest, Not a member yet? Register   Sign In
I'm Exhausted - Give me a hand here!
#3

[eluser]developer10[/eluser]
[quote author="taewoo" date="1215658046"]If I understand you correctly, i think you're tryin to do this in a controller:

Code:
function show($category, $city, $letter, $page)
{
  ....
}
[/quote]

yes, i think that would be the way. i found some stuff about those parameters that get passed to a function but i dont fully understand it.

consider this function for retrieving ALL companies from database:

Code:
function all_companies() {
        $result = array();
        $this->db->select()->from('tbl_companies')->orderby('c_name', 'asc');
        $query = $this->db->get();
        
        if($query->num_rows() > 0) {
            $result = $query->result();
        }
          return $result;
    }

how do i incorporate those parameters into my query (with the option of using only some of them) and what URL/URI structure can you suggest?


Messages In This Thread
I'm Exhausted - Give me a hand here! - by El Forum - 07-09-2008, 03:43 PM
I'm Exhausted - Give me a hand here! - by El Forum - 07-09-2008, 03:47 PM
I'm Exhausted - Give me a hand here! - by El Forum - 07-09-2008, 03:57 PM
I'm Exhausted - Give me a hand here! - by El Forum - 07-09-2008, 04:02 PM
I'm Exhausted - Give me a hand here! - by El Forum - 07-09-2008, 05:11 PM
I'm Exhausted - Give me a hand here! - by El Forum - 07-09-2008, 07:02 PM
I'm Exhausted - Give me a hand here! - by El Forum - 07-09-2008, 11:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB