and cof_id="+ c_id +" and reg_id=" + r_id i am getting this error... Incorrect syntax near '='. i am not able to find this error...this is only place where = is used in the page.