y asi??
Código PHP:
On error resume next
total = CInt(rs2.RecordCount)
response.write total
resultado = ((total/totalBooks)*100)
response.write resultado
getBooks = formatnumber(resultado ,2)
response.write getBooks
if err.number<>0 then
response.write err.description
response.end
end if