Ok I have been able to figure it out a little bit...
Here is what I got so far...
If I put the following code in a PHP file the stock quotes will display, but only at the top of the page.
Code:
$fd = fopen ("http://quote.yahoo.com/d/quotes.csv?s=DISH&f=sl1d1t1c1ohgv&e=.csv", "r");
$contents = fread ($fd, 200);
fclose ($fd);
$contents = str_replace ("\"", "", $contents);
$contents = explode (",", $contents);
echo "<ul><li>DISH Network stock tracker. Most recent trade: <b>\$$contents[1]</b>. ($contents[4]) (Prices delayed up to 20 minutes.)</li>";
Again this code works however the data is displayed at the top of my page.
I would like to be able to take this data and the
Code:
<ul><li>DISH Network stock tracker. Most recent trade: <b>\$$contents[1]</b>. ($contents[4]) (Prices delayed up to 20 minutes.)</li>
and put it into my templates, so the stock is displayed exactly where I want it on the page not at the top of the page. I would like it to go in my header, below my logo and above the Navbar.
Any ideas?