Check stock markets
OK , we are continuing our line of stock scripts with this example . In this example we will let the user select a stock market from a list and then we will display a yearly chart of the data . Examples of markets included in this example are Dow Jones , FTSE 100 , Hang Seng and Nasdaq . This is a useful addition for anyone who has a stock market related site or a financial site .
Code :
Again because of the size of the script we have a file that you can either view or right click to download will work as well .
stockindex.txt ( rename the extension to .php )
Description :
This is the same as our stock chart script , in that if no data is entered the form is displayed . When an option is selected we use a Switch statement to find the correct market to display.
|