Data queried from the database. and Here I create a method called `GetData(), I create a loop from 1-12 based on the months in a year. Next I want to combine data in an array, but how do I combine the data? Below is my controller model which calls the same model method over and over with different parameters: I
Tag: resultset
Json encode an entire mysql result set
I want to get json with php encode function like the following i want the output json to be something like that but the output json is look like the following As you realize that there is comma at the end, i want to remove it so it can be right json syntax, if i removed the echo “,”; when