July 9, 2008 at 5:47 PM
U r using wrong variables in query expression.
U have to use "origin" not src in query expression as src is only request parameter but not local variable. Thats y it is telling "undefined symbol:src". Please change it.
Another thing is,
origin & dest are strings here. Ur syntax of query expression is wrong. Please change it as follows:
"select * from FlightDetails where Source='"+origin+"' and Destination='"+dest+"'"
If U have to use them as integers in the query, first convert them into integers and use them as follows:
"select * from FlightDetails where Source="+origin+" and Destination="+dest"
I think it will work fine.