我怎样才能得到更多的50个结果显示在使用MySQL的Excel?

我search和search,我找不到我的答案。 我希望有人可以帮助。 我有一个代码,search一个MySQL数据库,并在网站上显示X数量的结果。 我search者然后可以将结果导出到Excel电子表格中。 我的问题是结果回来了几百,电子表格将只显示我50.这个代码还有很多,但有些东西告诉我,也许是在这里,并保存了超过400行代码,我显示这个。

$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 "; 

删除LIMIT 0, 50语句或将其更改为任何您希望显示的最大行数。