I have several record sets for example..
$row_Recordset1
$row_Recordset1
$row_Recordset1
Each has a value of say A-"16", B-"16", C-"8".
I can get the total value of "40" by the following..
<?php
$A=($row_Recordset1['NoPages_A']);
$B=($row_Recordset1['NoPages_B']);
$C=($row_Recordset1['NoPages_C']);
$Pages=($A+$B+$C);
echo "$Pages";
But I also want to get a value of "1" for each record set IF there is a value entered.
I've been on this for well over an hour, with the latest being..
if($row_Recordset1['NoPages_A']);{
$Asig=(1);}
$Sig=($Asig+$Bsig+$Csig);
Here I get a value of "3" whether or not there is an entry.