I have a webpage (html page) that uses ajax when clicking on button,
the php code in the server side retrieving all the data in a table in mysql (this table is active, and other users can insert into it),
first time i click on the button, all the data will be retrieved, but , if another user insert new data to the table, and click on the button another time, the new data will not be retrieved,
is the problem clear???
i need help please, thanx alot
AJAX with PHP
Moderator: General Moderators
-
ahmadajcis
- Forum Newbie
- Posts: 6
- Joined: Wed Jan 23, 2008 7:09 am
Re: AJAX with PHP
I found the solution,
because of the cache , all the data that are retrieved , they're retrieved from the cache, the optimal solution is to change the parameter that is sent with the url of the server side, like the timestamp
because of the cache , all the data that are retrieved , they're retrieved from the cache, the optimal solution is to change the parameter that is sent with the url of the server side, like the timestamp
Re: AJAX with PHP
Hi,
or using post instead of get for the ajax request.
or using post instead of get for the ajax request.