php - 500 Error when doing mysqli request, but works when under certain number of rows -


not quite sure how word question, im going put code , errors i'm getting, if please assist, doesn't make sense me.

var startrow = 50; var numberofrows = 10; $.ajax({     url: 'call.php',     method: 'post',     data: { start: startrow, limit: numberofrows } }).done(function( output ){     alert(output ); }); 

call.php

$startrow = $_post["start"]; $limit= $_post["limit"];  $fetchdata = mysqli_query($conn, "select * `table` group `orderid` order `time` desc limit {$startrow}, {$limit}");  $table = array(); while($tracking = mysqli_fetch_array( $fetchdata )) {     if(trackingtypebytoken($tracking['token']) != "this item not exist"){         $details = $tracking['clientid'] > 0 ? getclientnamebyid($tracking['clientid']) : $tracking['ip'];         $row = array(             "clientdetail" => $details,             "productname" => getproductnamebyid($tracking['productid']),             "trackingtype" => trackingtypebytoken($tracking['token']),             "time" => $tracking['time'],             "orderid" => $tracking['orderid'],             "cp" => $tracking['action']         );     }     array_push( $table, $row ); }  return json_encode( $table ); 

now works (i did adjust portions details) original code works, , works fast, when start row 47, change 48 crashes , gives me 500 internal server error, same above 48, or when try pull more 57 rows database, can tell me why be?


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -