Skip to content
Advertisement

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

Advertisement