JSON formatting error - Page 2

JSON formatting error

2»

Answers

  • A35GA35G Posts: 3Questions: 1Answers: 0
    header('Content-Type: application/json');
    
    $res = arrayPHPToJS($rets);
    
    
    echo "{'sEcho':2,'iRecords':".count($rets).",'iDisplayRecords':".count($rets).",'aaData':".$res."}";
    

    right php code

  • allanallan Posts: 63,368Questions: 1Answers: 10,449 Site admin

    A static sEcho is not going to work - it needs to be dynamic, based on what is sent in.

    Beyond that, can you link to a debug trace showing that code in use?

    Allan

This discussion has been closed.