Advertisement
Guest User

Untitled

a guest
Nov 25th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. //----------------------------------------User Quantity-----------------------------------------
  2.  
  3. public Cursor GetUserIdQuantity()
  4. {
  5. Log.v(TAG,"GetUserIdQuantity()");
  6. final String MY_QUERY =
  7. "select * from userquantity a left outer join users b on b.iduser=a.iduser where "
  8. + "b.password='"+String.valueOf(MainApplication.getGl().enteredpassword)+"';";
  9. // final String MY_QUERY =
  10. // "select * from userquantity where iduser='"+String.valueOf(MainApplication.getGl().saveUSERitem.getIDHcode())+"';";
  11. Log.v(TAG,MY_QUERY);
  12. Cursor mCursor = db.rawQuery(MY_QUERY,null);
  13. if (mCursor != null) {
  14. mCursor.moveToFirst();
  15. }
  16. return mCursor;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement