Jquery ajax – Ajax SyntaxError: Unexpected end of JSON input
I am encoding an array in JSON format before sending data to my HTML page with PHP then I am echoing out the result so I can get it with Ajax. Here is the controller that does so if(!isset($_SESSION)) {…