Jump to content

json encode a multidimensional array


jimfog

Recommended Posts

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

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...