can anyone let me know what m i doing wrong here .....
Here is my query and getting syntax error "near SELECT"
when trying to run query in sqlite database manager and as well as its always entering into "errorfunction"
during execution in phonegap app
tx.executeSql("INSERT INTO proposal_products(proposal_id,date_created,date_modified,labour_hours,cost_price,sale_price,adj_cost_price,adj_sale_price,service_price,adj_service_price,discipline_products_id) VALUES("
+ window.localStorage
.getItem("assign_proposal_id")
+ ",'"
+ getCurrentDateTime()
+ "','"
+ getCurrentDateTime()
+ "',"
+ selectedLabourHours
+ ","+ callStd +","
+ callStd +","
+ callStd +","
+ callStd +","
+ callStd +","
+ callStd +",(SELECT id FROM discipline_products WHERE discipline_products.product_id = (SELECT id FROM products WHERE c4w_code = "CALSTD")))",
[],
function() {
console
.log("suceessCBinsertIntoProposalProduct when Checkbox unchecked:");
window.localStorage.setItem("discipline_product_idCallStd","discipline_IdCallSTD");
},
function(err) {
console
.log("errorCBinsertIntoProposalProduct when Checkbox unchecked:"
+ err.message);
});