I run a lengthy PHP script I was modifying to PDO formatting as opposed to crappy mysql Db calls. At the end of the script, the $output is json encoded with:
echo json_encode( $output );
When I run the two scripts, the output to screen is IDENTICAL but my jquery DataTables program returns an error on the PDO encoded results and not the mysql return.
I have run regex's on the two results and they are IDENTICAL so why this is happening is beyond me.
Anybody ever had the same issue?
EDIT
DataTables error states:
DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error.