When I insert data into the database, for instance, a new client, and after that query the clients in the database, the new client is not immediately shown in the list. For it to be listed, I have to clear the cookies and log in, again, into the site.
Why does this happens and how can I solve this situation?

My thanks in advanced

Recommended Answers

All 3 Replies

for it to show automatically you need a trigger to execute the query e.g page refresh or an ajax function that will refresh every x second . Care to shed us more details about it..? also can you show as your script ?

that would be result if you will be using a meta tag it will refresh the whole page.. ajax would be your best option in achieving this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.