jimfog Posted August 28, 2014 Author Share Posted August 28, 2014 The code was given by JamesB and I am still studying it and trying to understand how it works. Link to comment Share on other sites More sharing options...
justsomeguy Posted August 28, 2014 Share Posted August 28, 2014 Line 17 is a hint. Link to comment Share on other sites More sharing options...
JamesB Posted August 28, 2014 Share Posted August 28, 2014 Here's another clue: The error says $appdata is undefined, so we must define it before it is used. Link to comment Share on other sites More sharing options...
jimfog Posted August 28, 2014 Author Share Posted August 28, 2014 Here's another clue: The error says $appdata is undefined, so we must define it before it is used. I defined it outside the while loop and that seems to solve the problem... $appdata=array(); I am going to study the code first and then ask some questions cause I want to realize here what is going on fully. Â And again...many thanks.It was very frustrating.... Link to comment Share on other sites More sharing options...
thescientist Posted August 28, 2014 Share Posted August 28, 2014 it still stands to ask why you are trying to json encode before all the data is assembled. it doesn't make sense to me. Link to comment Share on other sites More sharing options...
jimfog Posted August 28, 2014 Author Share Posted August 28, 2014 it still stands to ask why you are trying to json encode before all the data is assembled. it doesn't make sense to me. where do you see that? I do not understand Link to comment Share on other sites More sharing options...
thescientist Posted August 28, 2014 Share Posted August 28, 2014 hmm, I must have misread, but I thought I saw it happening one of the posts. Link to comment Share on other sites More sharing options...
JamesB Posted August 28, 2014 Share Posted August 28, 2014 I also thought json_encode was used in a loop lol, a bracket must have fooled us both. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now