include_once("prepend.php");
include("getratings.php");
#$s=preg_replace("/\W/","",$s,-1);
if (strlen($s)>10) { $s=substr($s,0,10); } // Sanity check to prevent some crazy malicious injection
$s=preg_replace("/[^a-zA-Z0-9\.]/","",$s);
if ($s) {
print '
';
list($name,$description,$mkt)=singlequery("select name,description,market from symbols where symbol='$s'");
get_ratings($s);
$result=query("select ratings.rating_date,action,rating_from,rating_to,firm from ratings where symbol='$s' order by ratings.rating_date desc");
?>
Date | Action | From | To | Firm |
---|---|---|---|---|
"; #for ($x=0;$x<4;$x++) {print " | $data[$x] | \n";} print implode("",$data); print " |