我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

PHP提交表单并刷新[关闭]

On my page ive got a form and a table which should update after the form is submitted by the user. However once user presses submit button, all info gets passed to DB but table is not updated on the website but if i press reload button myself it gets updated. How do i achieve those tables to be updated straight away after user submits the form?

I guess you are rendering the table before updating the database...

make sure you update the DB, then get the data again from there to create the table

近期文章

  • preg_match_all - > string:var a = 100 [关闭]
  • PDO更新查询集JSON字符串[重复]
  • Jquery ui js回归
  • PHP / MYSQL-如何使用IN查询
  • php中的isset函数通知
  • 使用PHP array_rand播放随机歌曲
  • 如何在PHP中随机化?
  • mysql查询使用连接显示数据?
  • 让leftbarbuttonitem右移。
  • Mysql连接数据库用php mysql fetch [复制]
  • 如果[关闭],从php运行JavaScript函数
  • 我的语法有什么问题? [关闭]
  • 如何在MySQL中为相同的查询参数返回相同的值?
  • PHP与HTML - 解析错误:语法错误,意外'其他'(T_ELSE)
  • 在php中格式化一个DateTime,格式为“JJJJ-MM-TTTss:mmZZZ”[关闭]
  • 代码无法将图像插入数据库,因为。 它没有超过if语句[关闭]
  • 带有一个项目的条带数组,不通过它循环而不知道它的索引[重复]
  • 如何通过PHP创建Json [重复]
  • php复制文件到所有文件夹[关闭]
  • 我们可以访问$ _POST作为变量名吗? [关闭]

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华