PHP page cannot be related to database synchronization and refresh

Source: Internet
Author: User
The PHP page cannot be refreshed synchronously with the database. my current problems are: (1.php& nbsp; and 2. php is on the left and right sides of the framework. on the php page, add data to the database. the php page displays the database content, but there is no newly added record. add data again. after submission. the php page displays the previously submitted data, but the data submitted this time is not displayed. how can this problem be solved, it is a cache issue. PHP pages cannot be refreshed synchronously with databases.
My current problem is: (1.php and 2. php is on the left and right sides of the framework. on the php page, add data to the database. the php page displays the database content, but there is no newly added record. add data again. after submission. the php page displays the previously submitted data, but the data submitted this time is not displayed. how can this problem be solved? on the Internet, it is a cache problem, you can add the following code to the php page. However, I have added the code to every page. why is it still useless. Almost Dying
@ Header ('expires: Thu, 01 Jan 1970 00:00:01 GMT ');
@ Header ('last-Modified: '. gmdate ('d, d m y h: I: s'). 'gmt ');
@ Header ('cache-Control: no-Cache, must-revalidate, max-age = 0 ');
@ Header ('pragma: no-cache ');
------ Solution --------------------
You are 1. php after submitting data, refresh the entire page, but 2. php is not updated, right?
If it is a cache problem, you can change it to 2.php? in src of framework 2. php? In this way, php will no longer be cached.

For example:





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.