doujishao8793 2016-03-02 21:15
浏览 22

为什么我的页面不能重新访问数据库中的动态数据?

I'm using PHP to connect to Postgres. I wrote a C# application that continually updates a table every 30 seconds.

I put in some test values and set the update time to update every 2 seconds. First, I started the application up and continually refreshed the table in pgAdmin to check if the table itself was updating every 2 seconds. As expected, the table was changing every 2 seconds.

Now that I knew the table was changing. I reset my application and started it over again. I first watched the table change for a couple of rotations in pgAdmin, and then I went to my website to see if the values would change there if I kept refreshing. For some reason, once the values on that page change 1-3 times, they stop changing, even though the C# application is still running and modifying those values. If I go into my text editor, type in a random value, then delete it and save the file, then the same thing will happen where the information on the mainpage will change 1-3 times and then stop.

So I believe resaving a file for my website will allow it to re-access the database. Is there a way to make it so that the page will continually keep changing after a refresh, and not stagnate after 1-3 refreshes?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
    • ¥15 帮我写一个c++工程
    • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
    • ¥15 关于smbclient 库的使用
    • ¥15 微信小程序协议怎么写
    • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
    • ¥20 怎么用dlib库的算法识别小麦病虫害
    • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
    • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
    • ¥15 有了解d3和topogram.js库的吗?有偿请教