Jump to content

use ajax to update a database


svgmx5

Recommended Posts

can anyone help me figure out how i can update a database with out refreshing the page?

 

I know i have use ajax to communicate with the php script that updates the database. But i'm not sure how.

 

I want the database to just update the count every 2 seconds, and echo the counter as well.

 

So basically i have a page with a counter that displays t he number of counts that are stored in the database. And every 2 seconds the database

is updated using ajax and the counter is displayed as well...can anyone help me out? i've looked online for several tutorials, scripts and i can't find much.

Link to comment
https://forums.phpfreaks.com/topic/214597-use-ajax-to-update-a-database/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.