I am developing an extension for Firefox and I have created SQLite DB. When inserting values into the table I get an error message:
Error: Permission denied for http://en.wikipedia.org to call method UnnamedClass.toString on <>.
The string values to be inserted are stored in a variable.
var book = "Harry Potter";
var myInsertQuery = 'INSERT INTO mybooks_tbl(title) VALUES('+ book + ');';
How do we insert data into the table as variables and not as strings?