If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Field populated by javascript from php query

This is one for some really smart people:

Okay, so this is what I want to do, I want to have a page that is a list of auction items, and for each list item, show a field with the current bid price - easy to do statically, but I want the current bid price field to by dynamically updated by javascript every few seconds from a php database query.

I have had no trouble building this page, but what happens is that the javascript will do the php query only once and fill the current bid price field continually with the same value, even if it has been changed in the database.

I have the javascript function repeating every second, so that is not the issue.

My php script works nicely, so that is not the issue.

Just to re-iterate, there is no problem passing a value to javascript from a php sql query, it is in trying to get javascript to refresh the value it gets from the php sql query everytime that it runs.

I have been working on this for over a year, and have done loads and loads of research, but to no avail. I assume that there is something high-level that I am missing here, not just coding.