jayeshp100 Posted March 23, 2006 Share Posted March 23, 2006 sql="select * from cars where car_id='" & Request("car") & "'; " and where fuel_type ='" & Request("car") & "'; " the above coding does not work...it comes with an end of statement error after the Request("car") & "'; partCan anyone help me..MANY THANKS.AND THE WHERE CLAUSES ARE SELECTED FROM A PICKLIST Link to comment Share on other sites More sharing options...
Siddhesh Posted March 23, 2006 Share Posted March 23, 2006 sql="select * from cars where car_id='" & Request("car") & "'; " and where fuel_type ='" & Request("car") & "'; " the above coding does not work...it comes with an end of statement error after the Request("car") & "'; partCan anyone help me..MANY THANKS.AND THE WHERE CLAUSES ARE SELECTED FROM A PICKLIST<{POST_SNAPBACK}> First check ur Sql StatementThe simple code query isSelect * from Table_Name where Field1=' Value1' and Field2=' Value2 'In ASP we can writesql="select * from cars where car_id=' " & Request("car") & " ' and fuel_type =' " & Request("car") & " ' " I Think this will help uBye Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now