<!-- see http://www.opentracker.net/examples/php_api_table.php for php enabled version -->
$admin = 	"login=demo@opentracker.net";
$pwd = 		"password=demo123";
$site = 	"site=www.opentracker.net";
$period = 	"period=4w";
$format =   "dataType=html";

// get the data from the api
$html = file_get_contents("http://api.opentracker.net/api/trends/trends.jsp?$admin&$pwd&$site&$period&$format");  



<style type="text/css">
#sqlresultTrends {
	border: 1px solid #DFDFDF;
	background-color: #F9F9F9;
	width: 100%;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	font-family: Arial,"Bitstream Vera Sans",Helvetica,Verdana,sans-serif;
	color: #333;
#sqlresultTrends td, #sqlresultTrends th {
	border-top-color: white;
	border-bottom: 1px solid #DFDFDF;
	color: #555;
#sqlresultTrends th {
	text-shadow: rgba(255, 255, 255, 0.796875) 0px 1px 0px;
	font-family: Georgia,"Times New Roman","Bitstream Charter",Times,serif;
	font-weight: normal;
	padding: 7px 7px 8px;
	text-align: left;
	line-height: 1.3em;
	font-size: 14px;
#sqlresultTrends td {
	font-size: 12px;
	padding: 4px 7px 2px;
	vertical-align: top;
echo $html;