my $blocksize = 100; my $limit = 1 + param("limit"); #get the value from the query string my $sql = "SELECT * FROM data LIMIT $limit,$blocksize;"