walkerdigest
Programmer
Hi,
I am trying to add numbers from mysql database but it is not working.
in mysql database field is decimal(5,2) . when I display in asp file numbers it shows with comma not point , and it doesn't add numbers gives error. what should I do?
the code is as below:
sql2= "select * from hakemnot where hakem_id =" & hakid(k) & " and mt_baslama_yil=" & year(date)
set rs2=bag.execute(sql2)
toplamnot(k)=0
top(k)=0
toplamnot(k)=toplamnot(k)+ rs2("hakemnot") <----- gives error
I am trying to add numbers from mysql database but it is not working.
in mysql database field is decimal(5,2) . when I display in asp file numbers it shows with comma not point , and it doesn't add numbers gives error. what should I do?
the code is as below:
sql2= "select * from hakemnot where hakem_id =" & hakid(k) & " and mt_baslama_yil=" & year(date)
set rs2=bag.execute(sql2)
toplamnot(k)=0
top(k)=0
toplamnot(k)=toplamnot(k)+ rs2("hakemnot") <----- gives error