srs1("toplam") bu zaten sayısal veri olarak çıkacaktır cint kullanımına gerek yok sanırım
güzel bir yaklaşım ama toplama işlemi yaparken;
Microsoft VBScript çalýþma hatasý hata '800a000d'
Tür uyumsuz
hatası veriyor...
örnek:
Set srs1 = Baglanti.Execute("SELECT SUM(hit) AS toplam FROM veriler where uye='"&1&"';")
if srs1.bof or srs1.eof then
Response.Write ""
else
session("mtopla1") = srs1("toplam")
end if
Set srs2 = Baglanti.Execute("SELECT SUM(hit) AS toplam FROM veriler where uye='"&2&"';")
if srs2.bof or srs2.eof then
Response.Write ""
else
session("mtopla2") = srs2("toplam")
end if
Response.Write session("mtopla1")+session("mtopla2")