-
Dynamic 'Market'
Ok i'm still learning php and have been toying with the idea of creating a small game to expand my knowledge!
Now then one part that puzzles me is lets say I have a stock market, which is going to rise and fall, how do i make the amrket appear if it changing all the time? do i use a php script? or do i use another language to interect with the server?
-
Re: Dynamic 'Market'
All you need to use is html's Meta tag:
PHP Code:
<META HTTP-EQUIV=Refresh CONTENT="5; URL=http://www.yoursite.com/yoururl.php">
It will refresh in every 5 seconds. You can change 5 to number you like.
-
Re: Dynamic 'Market'
you could probably do it with JavaScript (but not sure) or like RyanEllis said have it refresh the page every 5 seconds