I am currently looking for a way to split a database to send messages after 60 minutes or so. I have a table with over 1000 rows being returned from the database and would like to split them into groups of 50. I would appreciate an example of how this can be attained. Thank you.
2条回答 默认 最新
- dqt83336 2014-05-22 00:58关注
You could create a script that is navigated to like the following:
runner.php?start=0&limit=50
This page would start at row 0 and do 50 repeats. Then after 50 repeats it would echo out:
<script>setTimeout(function() { window.location='runner.php?start=50&limit=50'; }, 3600000)</script>
Where
start=50
would be the$_GET['start'] + $_GET['limit']
You would need to keep your browser window opened though.
解决 无用评论 打赏 举报
悬赏问题
- ¥15 ETLCloud 处理json多层级问题
- ¥15 matlab中使用gurobi时报错
- ¥15 这个主板怎么能扩出一两个sata口
- ¥15 不是,这到底错哪儿了😭
- ¥15 2020长安杯与连接网探
- ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
- ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
- ¥15 可见光定位matlab仿真
- ¥15 arduino 四自由度机械臂
- ¥15 wordpress 产品图片 GIF 没法显示