Well, I know this isn't elegant programming, but I really depend on the code executed after the if statement it's a lot of code executed if the condition is true, hence I temporarily solved this with the following
//CODE TO GENERATE MY VARIABLES ...
...
...
//MORE CODE
...
...
$query_string_field_no = count($_GET);
if ($query_string_field_no == 1) {
if ($data[$var0] == $arreglo_variables_existentes[0]) {
include("despliegue_tabular.inc");
}
}
if ($query_string_field_no == 2) {
if ($data[$var0] == $arreglo_variables_existentes[0] AND $data[$var1] == $arreglo_variables_existentes[1]) {
include("despliegue_tabular.inc");
}
}
if ($query_string_field_no == 3) {
if ($data[$var0] == $arreglo_variables_existentes[0] AND $data[$var1] == $arreglo_variables_existentes[1] AND $data[$var2] == $arreglo_variables_existentes[2]) {
include("despliegue_tabular.inc");
}
}
...
...
...
// GO ON UNTIL $query_string_field_no = 10
...
if ($query_string_field_no == 10) {
..
}
despliegue_tabular.inc is a very long snippet of code.
It looks silly even to me that I'm not an experience programmer...
This would do the job, however. I would probably have to rewrite the code if I'd rather use something more elegant.
Maybe I'm just not getting how the $empty array would help me.
Thanks for your patience and time,
Gustavo