How to use stdclass result with ajax-datasource
How to use stdclass result with ajax-datasource
Jenstel
Posts: 14Questions: 4Answers: 0
Hello. I have a PHP script that returns a stdclass object with the dataset. Can it be used as a data source. And then an example of such use
This discussion has been closed.
Answers
Use PHP's
json_encode()
to encode as JSON.Allan
Thanks.
And separately to set up ajax in js to build a table method of a DataTable?
The manual has full details for how to do that.
Allan