Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //----------------------------------------User Quantity-----------------------------------------
- public Cursor GetUserIdQuantity()
- {
- Log.v(TAG,"GetUserIdQuantity()");
- final String MY_QUERY =
- "select * from userquantity a left outer join users b on b.iduser=a.iduser where "
- + "b.password='"+String.valueOf(MainApplication.getGl().enteredpassword)+"';";
- // final String MY_QUERY =
- // "select * from userquantity where iduser='"+String.valueOf(MainApplication.getGl().saveUSERitem.getIDHcode())+"';";
- Log.v(TAG,MY_QUERY);
- Cursor mCursor = db.rawQuery(MY_QUERY,null);
- if (mCursor != null) {
- mCursor.moveToFirst();
- }
- return mCursor;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement