Hi Abu,
I have a problem while filtering or search data when I use logical operator (OR) in sql select_command.
If I write:
$g->select_command = "SELECT * FROM odldiceocc WHERE dlrl='DL/RL' OR cse='CSE'";
The table is correctly populated but autofilter or search button show random, wrong value.
If I write:
$g->select_command = "SELECT * FROM odldiceocc WHERE dlrl='DL/RL'";
autofilter or search button show correct value
How do you think about?
Thankyou in advance
2 Answers
You can try putting ( ) around condition.
e.g.
$g->select_command = "SELECT * FROM odldiceocc WHERE (dlrl='DL/RL' OR cse='CSE')";
Your Answer