Displaying info from mysql in real time w/o refreshing

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
andys627
Forum Newbie
Posts: 1
Joined: Tue Jan 18, 2011 2:50 pm

Displaying info from mysql in real time w/o refreshing

Post by andys627 »

Hi. I'm pretty new to php, mysql, jquery... please bear with me... I am trying to display some info in real time without refreshing the page.

I am working on a website where a group of users collectively bid tokens towards a goal (a goal consists of a description and an amount).

Administrators will choose a "goal" which all users will be "bidding tokens" to achieve. The goal is displayed to all users, including the text description of the goal, the goal amount, and the real time amount which users have bid towards the goal.

Users will be logged into an account which has tokens they have added to it.

A user has a "dashboard" where they enter amounts of tokens they wish to bid on the current goal.

When they bid, the real time amount which users have (collectively) bid towards the goal will be reduced by the amount of tokens bid.

Ok, what I am thinking is a database of bids, each one referencing the unique id for each goal. I think I can figure out how to set up the databases, but what I don't know how to do is display the real time amount raised towards the goal collectively by all users.

Some other websites that show updated info in real time are some of the penny bidding websites...

Thanks in advance for any tips.
s992
Forum Contributor
Posts: 124
Joined: Wed Oct 27, 2010 3:06 pm

Re: Displaying info from mysql in real time w/o refreshing

Post by s992 »

Google AJAX and you'll find what you're looking for.
Post Reply