Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.json.JSONException: No value for user

 
Gil Carvalho
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I'm getting this error in my login and i don't know why

My php



My login.java



My JsonParser



and my Userfunctions



The errors i get



Any help please??
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post the JSON data that is being returned. Does it have data for "user"?
 
Gil Carvalho
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know

When i put this in my php




The logCat gives me this



The problem is it seems that the response variable in php don't fill the JSonObject "user"
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So the problem is in the PHP code somewhere...?
 
Gil Carvalho
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Maybe, but i don't know where.
The query works since the first if after the query works, i put a acho there.
The problem is the §response variable seems to don't get the variables, why?

Regards
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll move the question over to the PHP forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic