I have a snippet of code that looks like this:
<sql ROW "delete from tempadds">
Processing $BN for $Userid / $UsRec
<sum "%s
" $Userid $UsRec>
<$useridrec = $ret>
<SQL MAX = '1' "select * from books where USER_ID\USER_REC= $ret"></sql>
Problem is when the both variables have a strictly numeric value the sum statement does funky things and turns it something I dont want as seen below:
<!-- 200 runaddsV2:9: delete from tempadds; -->
Processing 8032087068 for 53021449 / 03799
5.30252e+07
<!-- 200 runaddsV2:15: select * from books where USER_ID\USER_REC= `5.30252e+07.'; -->
Record not found - Inserting
How can I get the desired output from the sum??
M.
<sql ROW "delete from tempadds">
Processing $BN for $Userid / $UsRec
<sum "%s
" $Userid $UsRec>
<$useridrec = $ret>
<SQL MAX = '1' "select * from books where USER_ID\USER_REC= $ret"></sql>
Problem is when the both variables have a strictly numeric value the sum statement does funky things and turns it something I dont want as seen below:
<!-- 200 runaddsV2:9: delete from tempadds; -->
Processing 8032087068 for 53021449 / 03799
5.30252e+07
<!-- 200 runaddsV2:15: select * from books where USER_ID\USER_REC= `5.30252e+07.'; -->
Record not found - Inserting
How can I get the desired output from the sum??
M.