Click here to Skip to main content
15,885,941 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using Classic ASP and JavaScript, i m getting an error. Can anybody please help me?

SQL
var a="select * from GMA_Time_entry where Time_study_date IS NULL AND Unique_ID='"+Session('Unique_ID')+"";


But it is not working properly and not showing any error.
Is there anything wrong with the query?
When I tried it in sql server like this:

select * from GMA_Time_entry where Time_study_date IS NULL AND Unique_ID=515;

I am getting o/p.
Posted
Updated 14-Sep-11 0:33am
v2
Comments
Pravin Patil, Mumbai 14-Sep-11 6:37am    
Not working properly means what, are not you getting any result or getting wrong result. Also, I would suggest you to check Session('Unique_ID') value as well.....

1 solution

Yes, you have an extra ' after =. Use this,
var a="select * from GMA_Time_entry where Time_study_date IS NULL AND Unique_ID=" + Session('Unique_ID');
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900