I have the following situation, the user can select the language level, such as: Basic, Intermediate or Advanced and I have it in the form of a checkbox.
I need to set up a dynamic query according to the user-selected options, for example, if the user chooses the Basic and Intermediate level options, how could I set up this query to perform the search? It can be one, two or all of the options.
An example of this was erroneously doing this search:
if ($NivelIngles != ""){
if ( $lcWhere <> "" ) {
$lcWhere.= " AND ('candidato'.NivelIngles = '$NivelIngles ')";
} else {
$lcWhere.= " WHERE ('candidato'.NivelIngles = '$NivelIngles ')";
}
}
The result before setting up my search looks like this:
Array ( [0] => Basico [1] => Intermediario )
I hope you've been able to explain my question