Maybe it's a stupid question, but I can't reach an answer. There's a limit to showing rows when I use the sql command "Select * from table order by id asc limit 0,X"?
Because I'm working with a script that using it and I don't have problems until 700 rows. If I want limit 800 rows, for example, I can't see any data and error_log says "Undefined index".
$sql = "SELECT id,email,nome,cognome,lingua,unsubscribe ";
$sql.=" FROM newsletter_utenti WHERE 1=1";
if( !empty($requestData['search']['value']) ) {
$sql.=" AND ( id LIKE '".$requestData['search']['value']."%' ";
$sql.=" OR email LIKE '".$requestData['search']['value']."%' ";
$sql.=" OR nome LIKE '".$requestData['search']['value']."%' ";
$sql.=" OR cognome LIKE '".$requestData['search']['value']."%' ";
$sql.=" OR lingua LIKE '".$requestData['search']['value']."%' )";
}
$query=mysqli_query($db, $sql) or die("errore filtro");
$totalFiltered = mysqli_num_rows($query);
$sql.=" ORDER BY ". $columns[$requestData['order'][0]['column']]." ".$requestData['order'][0]['dir']." LIMIT ".$requestData['start']." ,".$requestData['length']." ";
$query=mysqli_query($db, $sql) or die("order by error");
The problem it's referred to my previous post: DataTable server side works only when I have a few data
I thought there're two different issues so I've opened the second post.
Thank you