Last night, since I couldn't get that one to work at all, I decided to go with another one. This one I have working perfectly when I go to the
www.mydomain/phpfolder/index.php page. when I upload it and open it, it works just fine. What I can't seem to do is insert the code into a html page table in the
www.mydomain/myquotepage.htm page. When I copy the entire code and insert it into the cell using code view, is visible but it isn't accessing the part that actually displays the quotes.
I am sure this is a basic skill I have not mastered and I really would appreciate it if you can tell me how to get this chart to display properly on my own html page. Here is the code for the index.php file. It really is a sweet little chart, if I can only get them to display on my pages. Thank you very much for your help!
<?php
require($_SERVER['DOCUMENT_ROOT']."/gcquotepro/includes/functions/func.gcquotepro.inc.php");
$quote = _gc_DoChart("GOOG", $_SERVER['DOCUMENT_ROOT']."/gcquotepro/stock_temp/", 120);
?>
<style type="text/css">
p.center{
text-align:center;
}
table#gtsqp_tbl{
font-family:Verdana;
border: 1px solid #3d56a6;
font-size: 12px;
margin: 5px auto;
color: #000000;
}
table#gtsqp_tbl a, table#gtsqp_tbl a:visited{
color: #FFFFFF;
font-size: 12px;
font-weight:bold;
text-decoration:none;
}
table#gtsqp_tbl a:hover{
color: #56668d;
}
table#gtsqp_tbl td{
border: 1px solid #56668d;
padding:2px;
}
table#gtsqp_tbl td.leftcol{
background-color: #3d56a6;
color: #FFFFFF;
}
table#gtsqp_tbl td.blank{
border:none;
}
table#gtsqp_tbl p{
padding:0;
margin:0;
}
table#gtsqp_tbl .tableheader{
background-color: #3d56a6;
border: 1px solid #56668d;
color: #FFFFFF;
}
table#gtsqp_tbl .tableheader p{
text-align:center;
}
table#gtsqp_tbl .tablefooter{
border: none;
}
table#gtsqp_tbl .tablefooter p{
text-align:center;
}
table#gtsqp_tbl .tablefooter img{
border: 1px solid #56668d;
}
</style>
<table id="gtsqp_tbl">
<tr>
<td colspan="5" class="tableheader"><p><?php echo ucwords(strtolower($quote[stock_name]))." (<a href='http://finance.yahoo.com/q?d=t&s=".$quote[stock_symbol]."'>".$quote[stock_symbol]."</a>)"; ?></p></td>
</tr>
<tr>
<td class="leftcol"><p>Last Price:</p></td>
<td><p><?php echo $quote[stock_last]; ?></p></td>
<td rowspan="5" class="blank"></td>
<td class="leftcol"><p>Day's Range:</p></td>
<td><p><?php echo $quote[stock_low]." - ".$quote[stock_high]; ?></p></td>
</tr>
<tr>
<td class="leftcol"><p>Change:</p></td>
<td><p><img src="<?php if($quote[stock_change] > 0){ echo "images/up_arrow_g.gif"; } elseif($quote[stock_change] < 0){ echo "images/down_arrow_r.gif"; } else{ echo "images/blank.gif"; } ?>" alt="" /> <?php echo $quote[stock_change]." (".$quote[stock_percchange]."%)"; ?></p></td>
<td class="leftcol"><p>52wk Range:</p></td>
<td><p><?php echo $quote[stock_yrlow]." - ".$quote[stock_yrhigh]; ?></p></td>
</tr>
<tr>
<td class="leftcol"><p>Last Trade:</p></td>
<td><p><?php echo $quote[stock_date]." ".$quote[stock_tstamp]; ?></p></td>
<td class="leftcol"><p>Volume:</p></td>
<td><p><?php echo $quote[stock_volume]; ?></p></td>
</tr>
<tr>
<td class="leftcol"><p>Prev Close:</p></td>
<td><p><?php echo $quote[stock_prevclose]; ?></p></td>
<td class="leftcol"><p>P/E:</p></td>
<td><p><?php echo $quote[stock_pe]; ?></p></td>
</tr>
<tr>
<td class="leftcol"><p>Open:</p></td>
<td><p><?php echo $quote[stock_open]; ?></p></td>
<td class="leftcol"><p>EPS:</p></td>
<td><p><?php echo $quote[stock_eps]; ?></p></td>
</tr>
<tr>
<td colspan="5" class="tablefooter"><p><?php echo "<img src='http://ichart.yahoo.com/t?s=".$quote[stock_symbol]."' alt='' />"; ?></p></td>
</tr>
</table>
<p class="center"><?php _gc_About(); ?></p>