This should be a very simple task, but i have been stuck for an hour.
I tried this query in the sqlite browser, and its WORKING :
SELECT name FROM msUser WHERE username='admin' AND password='admin'
But when i tried this in the Java code, its not wokring :
querySelect = "SELECT name FROM " + TABLE_NAME + " WHERE username = " + username + " AND password = " + password;
This is what the log cat said :
01-19 14:21:02.279: E/AndroidRuntime(3117): android.database.sqlite.SQLiteException: no such column: admin: , while compiling: SELECT name FROM msUser WHERE username = admin AND password = admin
Please help me, Thanks 😀
Try this: