I am using phpgird to display the data from MySQL. The data is retrieved and passed in correct JSON format but it is not displayed in the Grid.
An error message pops up with the fetched record.
Error Pop up has following fetched record:
{"page":"1","total":1,"records":"2","rows":[{"user_no":"1","login_nm":"test","user_first_nm":"test first nm","user_last_nm":"test last nm","user_disabled_in":"N","last_access_ts":"","add_ts":"","add_user_id":"","update_ts":"","update_user_id":"","chetna_usercol":""},{"user_no":"2","login_nm":"scan","user_first_nm":"scan first nm","user_last_nm":"scan last nm","user_disabled_in":"N","last_access_ts":"","add_ts":"","add_user_id":"","update_ts":"","update_user_id":"","chetna_usercol":""}]}
This could be because of some white space / newline character at some place before render() function call.
Ideally, this should be no output html before $g->render() function.