Adam Green
Twitter API Consultant
adam@140dev.com
781-879-2960
@140dev

Free open source code for Twitter API Engagement Programming

/report/all_tags.php

<?php
// Copyright (c) 2013 Adam Green. All rights reserved.
// See http://140dev.com/download/license.txt for licensing of this code.

require('page_top.html');

require('../config.php');
require('../db_lib.php');
$db = new db();

$table_name = 'tweet_tags';
$report_name = 'all_tags.php';
require('select_date.php');

print '<h2>Top Tags Tweeted by all Accounts</h2>';

require('../get_all_tags.php');
$tags = get_all_tags($where,$page*$results_per_page, $results_per_page);

if(sizeof($tags)){	
	$tag_html = '<table><th align="left">Count</th><th align="left">Tag</th>';
	foreach($tags as $tag) {
		$tag_html .= '<tr><td style="width:60px">' . number_format($tag['cnt']) . 
			'</td><td><a href="https://twitter.com/search?q=%23' . $tag['tag'] .
			'">' . $tag['tag'] . '</a></td></tr>';
	}
	$tag_html .= '</table>';
	print $tag_html;
} else {
	print "No tags found";
}

require('page_bottom.html');
?>


I'm a member of the #140dev Twitter development community - join us for free source code and tutorials: