searching a datatable results in invalid json response error how to overcome this ?
searching a datatable results in invalid json response error how to overcome this ?
![vaishnavkoka](https://secure.gravatar.com/avatar/88b959edb5de8cd1e94f6c402a76cc72/?default=https%3A%2F%2Fvanillicon.com%2F88b959edb5de8cd1e94f6c402a76cc72_200.png&rating=g&size=120)
I have used default search option for the datatable, but while making a search it gives an error if there is no data present with respect to that of value searched for
example 1 : search input "koka"
output: it displays the records which consists "koka" in their column
example 2: search input "kokaa"
output : it gives an invalid json response error
My "ssp.class.php" file(ajax supports the searching operations)
here is my ssp.class.php code
This discussion has been closed.
Answers
Hi @vaishnavkoka ,
It looks like you've modified that "ssp.class.php" file. In the original empty matches are returned, so it would be worth doing a diff on the two files.
Cheers,
Colin
Hi @colin ,
yeah...!! I did modifications but now i tried with the "ssp.class.php" suggested by you and i got these error, i tried debugging it, but failed to do so.
![](https://datatables.net/forums/uploads/editor/l6/zrlk0s41ku7f.png)
![](https://datatables.net/forums/uploads/editor/vp/8dlauq4o6jrx.png)
please let me know where did i go wrong?
Thanks
Koka