dongmi1941 2012-10-08 13:25
浏览 29
已采纳

仅在页面加载和表单提交期间执行存储过程

This is the scenario: I want to execute a MySQL stored procedure from a PHP page only on two events:

  1. Execute/CALL the sp the first time the page is loaded
  2. It will execute again after every time a form is submitted via POST

But it will NOT execute if the page is Refreshed (by clicking the refresh button in the browser).

The page is available to logged-in users only.

Can someone please suggest possible solutions to such a scenario?

  • 写回答

1条回答 默认 最新

  • doukong1391 2012-11-03 04:33
    关注

    I solved this by saving some SESSION variables and then checking those variables when the page is refreshed.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?
  • ¥15 matlab(相关搜索:紧聚焦)
  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计