Jak mogę uzyskać więcej niż 50 wyników do wyświetlenia w programie Excel za pomocą mysql?
Szukałem i przeszukałem i nie mogę znaleźć mojej odpowiedzi. Mam nadzieję, że ktoś może pomóc. Mam kod, który przeszukuje bazę danych mysql i wyświetla X ilość wyników na stronie internetowej. Wyszukiwacz może następnie wyeksportować wyniki do arkusza kalkulacyjnego Excel. mój problem polega na tym, że wyniki wracają setki, a arkusz kalkulacyjny pokaże mi tylko 50. ten kod zawiera znacznie więcej, ale coś mi mówi, że może tu być i zapisać ponad 400 wierszy kodu w pokazie to.
$sql .= ",
IF (cycle_id = 4,
" . ((4 == $next_available_quarter) ?
"'" . $next_available_quarter_month[4] . "-{$next_available_quarter_year}'" :
"'" . $next_available_quarter_month[4] . "-" . ($next_available_quarter_year+1) . "'") . "
,
IF (cycle_id = 3,
" . ((3 == $next_available_quarter) ?
"'" . $next_available_quarter_month[3] . "-{$next_available_quarter_year}'" :
"'" . $next_available_quarter_month[3] . "-" . ($next_available_quarter_year+1) . "'") . "
,
IF (cycle_id = 2,
" . ((2 == $next_available_quarter) ?
"'" . $next_available_quarter_month[2] . "-{$next_available_quarter_year}'" :
"'" . $next_available_quarter_month[2] . "-" . ($next_available_quarter_year+1) . "'") . "
,
" . ((1 == $next_available_quarter) ?
"'" . $next_available_quarter_month[1] . "-{$next_available_quarter_year}'" :
"'" . $next_available_quarter_month[1] . "-" . ($next_available_quarter_year+1) . "'") . "
)
)
)
)
)
)
) as next_run
FROM
tax_search_loans tsl
LEFT JOIN
tax_searches ts
ON
(tsl.tax_search_loan_id = ts.tax_search_loan_id)
LEFT JOIN
tax_search_results tsr
ON
(tsr.tax_search_id = ts.tax_search_id)
LEFT JOIN
states
ON
(tsl.state_id = states.state_id)
LEFT JOIN
tax_search_loan_officers tslo
ON
(tslo.tax_search_loan_officer_id = tsl.tax_search_loan_officer_id)
WHERE
tsl.active = 'Y' AND
tslo.active = 'Y' AND
tslo.customer_code IN ('" . implode("','", explode(',', $DB->cleanString($_GET['custcodes']))) . "') AND
(ts.active IS NULL OR ts.active = 'Y') AND
(tsr.active IS NULL OR tsr.active = 'Y')
LIMIT 0, 50
";