I have six columns in a table "P" and need to echo the total # of columns that only contain values. (not concerned about actual values contained, only if they do contain a value)
ex: if 3 of these contain a value then "3" should be echoed
col's
P1, P2, P3, P4, P5, P6
Would rather not use Count if it means javascript or a page refresh.
Any help much appreciated.
Can't this be done with <?php if( ( )) {echo' ' ;}?>
But how might it go to translate !='' to tally a total?