Server side processing : returned parameter 'start' is wrong

Server side processing : returned parameter 'start' is wrong

upcnupcn Posts: 2Questions: 1Answers: 1
edited May 2016 in Free community support

Dear comunity,

I'm using DataTable in a home-made framework with server side processing for loading datas.

It works perfectly on all of my projects unsing it until a certain one... where DataTable send to my "server.php" the usual set of paramters, but with: start='R3918399225' !!?? in place of 0 or any valid number (draw, lenght, search, order, etc., all other parameters are OK).

The only difference between (about) 10 of my other projects - where DataTable works perfectly - and this one is... I don't know !
- same PHP version as others
- same MySql version as others
- same version of my framework
- exactly same evironnement...

So, I could send you all my code here but 1) it will bother a bit you.. and 2) as said, my code function perfectly on ALL others projetcs.

My Question is : did you already encounter some problem on returned parameter "start" ?
Did "start='R3918399225'" telling something to you ? Is it a kind of error code ?

By waiting your answer, I wrote (in my "server.php") something like :

$start = $_REQUEST['start'];
if (!is_numeric($start)) {
$start = 0;
}

Problem solved. ...but I don't like this solution... :/

Thank you in advance ;)

This question has an accepted answers - jump to answer

Answers

  • upcnupcn Posts: 2Questions: 1Answers: 1
    Answer ✓

    OK !
    The host for this project overwrite var 'start' in POST !!!

    Sorry for the inconvenience :/

    Don't know how to close this topic ?

This discussion has been closed.