I am dynamically producing a query from a table to run on another table.
The bulk of this is no problem.
The problem I am having to get 2 variables to divide.
For Example
Further On down in the code I use:
This could output 1020 (i.e. 10 and 20),which is fine.
However I would like to divide these 2 numbers (i.e. 10/20).
The best I have got is to have 10/20 displayed on screen rather than the actual division result.
Hopefully the above is clear?
Does anyone have any ideas?????
The bulk of this is no problem.
The problem I am having to get 2 variables to divide.
For Example
Code:
$rowdata[$i]='$B'.$myrow["Num"].'$A'.$myrow["Num"];
Further On down in the code I use:
Code:
for($a=0;$a<$numcols;$a++){
$out="<td>rowdata[$a]</td>";
eval("\$out = \"$out\";");
echo $out;
}
This could output 1020 (i.e. 10 and 20),which is fine.
However I would like to divide these 2 numbers (i.e. 10/20).
The best I have got is to have 10/20 displayed on screen rather than the actual division result.
Hopefully the above is clear?
Does anyone have any ideas?????