Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
おはようございます!
かなり単純なはずのことをしようとしていますが、有効な答えを見つけることができませんでした。テーブルからエントリ 0 ~ 999、次に 1000 ~ 1999、2000 ~ 2999 などをプルダウンしようとしています。
for($k = 0; $k < 10000; $k += 1000) { $query = "select * from TABLENAME LIMIT 1000 OFFSET " . $k; ..... }
$start = 0; $end = 0; for($k = 0; $k < 10000; $k += 1000) { $flag = $start+999; $end = 1000; $query = "select * from TABLENAME LIMIT $start,$end"; ..... $start = $flag+1; }