Ionic sqlite where clause


#1

this.db.executeSql(‘SELECT * FROM rm WHERE day=?, month=?, year=?’, [day, month, year]);

need to execute above query but getting error like
TypeError: Cannot read property ‘executeSql’ of undefined


#2

I would suggest ensuring this.db is defined before you attempt to interact with it.


#3

Thanks for the reply. Yes, i specified SQLiteObject. Problem is i called the function before sqlite triggered.