I'm just diving into Laravel this week. I've done a few tutorials and have been able to figure out how to setup my database, loop through my records and display them in a view. With each record I am displaying a checkbox and each is set to checked="checked"
based on a boolean field from the "CheckedIn column in the database. I want to be able to uncheck multiple records then submit and update that column in the database then refresh the page showing the changed records as unchecked. Just looking for a jumping off point or links to resources that explain this process better. If I could figure out how to do it via javascript and AJAX that'd be even better.
从Laravel更新mysql记录
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- doufu8887 2015-04-08 08:54关注
You need to post up more information for people to help you.
Your process would be something like this:
Create the table with a form, with all the checkboxes named with the ID of the row in the DB table
->
Submit the form
->
Get all the inputs for the checked boxes
->
loop through and see whether it is checked or not
->
Update that row in the database
->
Redirect back
解决 无用评论 打赏 举报
悬赏问题
- ¥15 我想在一个软件里添加一个优惠弹窗,应该怎么写代码
- ¥15 fluent的在模拟压强时使用希望得到一些建议
- ¥15 STM32驱动继电器
- ¥15 Windows server update services
- ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
- ¥15 模糊pid与pid仿真结果几乎一样
- ¥15 java的GUI的运用
- ¥15 Web.config连不上数据库
- ¥15 我想付费需要AKM公司DSP开发资料及相关开发。
- ¥15 怎么配置广告联盟瀑布流