Skip to content

Having problem regarding whereClauseArray() #27

@takerukimura

Description

@takerukimura

Hi Zepernick,

Im having problem regarding whereClauseArray() function. What I want to do is using where clause to find event_id = $_GET['id]. So I wrote like this :
public function whereClauseArray(){ $conditions = array(); $conditions['event_id ='] = $this->input->get('id'); return $conditions; }
But it can't find any data. If I do like this :
public function whereClauseArray(){ $conditions = array(); $conditions['event_id ='] = 5; return $conditions; }
The data will come out. Is there any specific method to using value from $_GET ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions