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.

Thanks in advance to everyone.