I am trying to build a where statement. The reason I am building it by hand is that although I can get it to work with one filter I can't get it to work with more than two. I saw a recommendation StackOverflow to build it by hand and that is what i am trying to do. I also tried fooling with OR_where but I am not sure that is supported in GC. I did see a
attempt1:
This is my current try. Here is what I see in my debugger after running this line.
$where="'email'=".$email_encrypt." OR 'email'=".$email_unencrypt." OR 'email'=N/A";
$crud->where($where);
$where='email'=richb201@gmail.com OR 'email'=cmljaGIyMDFAZ21haWwuY29t OR 'email'=N/A
attempt2:I have also tried it by using
$crud->where('email',base64_decode( urldecode( $this->session->userdata('userid') )));
$crud->OR_where('email',$this->session->userdata('userid'));
$crud->OR_where ('email','N/A');
$crud->set_relation_n_n('activities', 'relation', 'standard_activities', 'activity_id', 'standard_id', 'activity','priority');
This seems to fill in the where and the OR_where elements of $crud ok but doesn't seem to actually work when I run my app. By that I mean that although the first where seems to work, the additioanal OR_where's don't. I did see a post up here from a few years ago where the solution was to build the query by hand. but as you can see from my first attempt, but I can't seem to get the string correct.