Check Value from mysql using android -


i have table has field called sold , in field store 0 , 1. 1 means sold , 0 mean available.

k, problem ,i want change 0 available , 1 sold when diplay information emulator , here tried returning sold though have 0 in database :

if (sold.length()==0){      log.d("checking","inside = 0");      val = "available";}      else if (sold.length()>0)          log.d("checking","inside = 1");         val = "sold 

and sold contains value database.

please change 0 available , 1 sold.

if(sold.equalignorecase("0")) {    log.d("checking","inside = 0"); }else {    log.d("checking","inside = 1"); } 

Comments

Popular posts from this blog

Glib GIOChannel -

delphi - When I encode/decode SMS PDU (GSM 7 Bit) user data, do I need prepend the UDH first? -

python - Obscure curses error message when creating a sub window -