Jump to content

Table of data


Xtremer360

Recommended Posts

What I'm wanting to do is instead of March-July have it always display the last 5 months and for the Visits th have it display the number of hits to my main page for each month and display the number of logins for each month to my CMS script. Can someone point me in the right direction?

 

 

<?php
function get_visit_data_table()
{
	echo "<table class=\"visualize_dashboard\">";
	echo "<caption>Dashboard Chart Example</caption>";
	echo "<thead>";
	echo "<tr>";
	echo "<td></td>";
	echo "<th scope=\"col\">March</th>";
	echo "<th scope=\"col\">April</th>";
	echo "<th scope=\"col\">May</th>";
	echo "<th scope=\"col\">June</th>";
	echo "<th scope=\"col\">July</th>";
	echo "</tr>";
	echo "</thead>";
	echo "<tbody>";
	echo "<tr>";
	echo "<th scope=\"row\">Visits</th>";
	echo "<td>175</td>";
	echo "<td>145</td>";
	echo "<td>212</td>";
	echo "<td>175</td>";
	echo "<td>182</td>";
	echo "</tr>";
	echo "<tr>";
	echo "<th scope=\"row\">Logins</th>";
	echo "<td>94</td>";
	echo "<td>53</td>";
	echo "<td>124</td>";
	echo "<td>92</td>";
	echo "<td>105</td>";
	echo "</tr>";
	echo "</tbody>";
	echo "</table>";
    }       
?>

Link to comment
https://forums.phpfreaks.com/topic/245529-table-of-data/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.