I have a detail page (a $HTTP_GET_VARS['id']) with the following statement:
<?php if ( ($row_DetalheCorrida['circuito']!="") && ($row_DetalheCorrida['nome_pista']!="") && ($row_DetalheCorrida['duracao']!="") && ($row_DetalheCorrida['inscricao']!="") && ($row_DetalheCorrida['classes']!="") ){ ?>
DetalheCorrida is the name of the query
'circuito', 'nome_pista' are names of fields
if ANY of this conditions are TRUE, shows a html table;
but what happens is that hides that table, even when one of the conditions is FALSE 🙁
I've tryed everything I could remember: using !== instead of !=, (in that case, the html table is ALWAYS ON), using a variable, etc... can you please help me?
I've tryed also like this:
$query_prova = sprintf("SELECT prova.circuito, prova.duracao, prova.inscricao, prova.classes, prova.nome_pista FROM prova WHERE prova.nome_pista is not null AND prova.classes is not null AND prova.inscricao is not null AND prova.duracao is not null AND prova.circuito is not null AND %s", $colname_prova);
and the results are similar...
can someone help me out? I'm stuck on this for 1 day 🙁
many thanks in advance
po