I've made some changes that I'd like to contribute back to the group.
Note: This is embedded into our order processing control panel that only staff see, I would *NOT* recommend showing this to the public.

<?php
/*********************************************************************
display_open_topics.php
Displays a block of the last X number of open tickets.
Neil Tozier <tmib@tmib.net>
Copyright (c) 2010-2013
For use with osTicket version 1.7ST (http://www.osticket.com)
Released under the GNU General Public License WITHOUT ANY WARRANTY.
See osTickets's LICENSE.TXT for details.
**********************************************************************/
# configure this area with your database connection information
$dbhost = 'localhost'; // FQDN server name or IP (or localhost for local machine)
$dbname = 'osticket'; // database name
$dbuser = 'osticket'; // database username
$dbpass = '<DBPASS>'; // database password for username (above)
# make the connection to the MySQL server
mysql_connect($dbhost,$dbuser,$dbpass);
<USERMENTION username="mysql_select_db">@mysql_select_db</USERMENTION>($dbname) or die( "DB Error: Unable to select database");
// The columns that you want to collect data for from the db
$columns = "ticket_id, ticketID, staff_id, name, subject, created, updated, priority_id, dept_id";
// The maximum amount of open tickets that you want to display.
$limit ='10';
// mysql query. The columns tha
$query = "SELECT $columns
FROM ost_ticket
WHERE status='open' AND dept_id != 3
ORDER BY created DESC
LIMIT 0,$limit";
$result=mysql_query($query);
$num = mysql_num_rows($result);
if ($num >> 0) {
// table headers, if you add or remove columns edit this
echo "<table width=890 border-color=#BFBFBF border=0 cell-spacing=2 style='font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: xx-small;'><tr style='background-color: #BFBFBF;' align=center>";
echo "<td id='openticks-a'><b>Priority</b></td><td id='openticks-a'><b>Name</b></td><td id='openticks-a'><b>Issue</b></td><td id='openticks-a'><b>Opened on</b></td><td id='openticks-b'><b>Last Update</b></td><td id='openticks-b'><b>Department</b></td><td id='openticks-b'><b>Assigned To</b></td></tr>";
$i=0;
while ($i < $num) {
// You will need one line below for each column name that you collect and want to display.
// If you are unfamiliar with php its essentially $uniqueVariable = mysql junk ( columnName );
// Just copy one of the lines below and change the $uniqueVariable and columnName
$ticket_id = mysql_result($result,$i,"ticket_ID");
$ticketid = mysql_result($result,$i,"ticketID");
$name = mysql_result($result,$i,"name");
$subject = mysql_result($result,$i,"subject");
$created = mysql_result($result,$i,"created");
$updated = mysql_result($result,$i,"updated");
$priority = mysql_result($result,$i,"priority_id");
$department_id = mysql_result($result,$i,"dept_id");
$staff_id = mysql_result($result,$i,"staff_id");
// if no update say so, and make the date format more human friendly
if ($updated == '0000-00-00 00')
{
$updated_date = 'No update yet';
}
else
{
$updated_date = date("d-m-y g", strtotime($updated));
}
//make the created date format more human friendly
$created_date = date("d-m-y g", strtotime($created));
// look up department and then cross refference to get department's name
$getdept_names = "SELECT * FROM ost_department WHERE dept_id='$department_id'";
$deptresult = mysql_query($getdept_names);
$dept = mysql_result($deptresult,0,"dept_name");
//look up the staff ID# and then cross reference it to get the staff member's name
$getstaff_names = "SELECT * FROM ost_staff WHERE staff_id='$staff_id'";
$staffresult = mysql_query($getstaff_names);
$staff = mysql_result($staffresult,0,"firstname");
// change row back ground color to make more readable
if(($i % 2) == 1) //odd
{$bgcolour = '#F6F6F6';}
else //even
{$bgcolour = '#FEFEFE';}
//populate the table with data
echo "<tr align=center><td BGCOLOR=$bgcolour id='openticks-a' nowrap><img src='priority/pr_$priority.gif'></td>"
."<td BGCOLOR=$bgcolour id='openticks-a' nowrap> $name </td><td BGCOLOR=$bgcolour id='openticks-a'> <a href='http://support.coolgear.com/scp/tickets.php?id=$ticket_id' target='_blank'>$subject</a> </td>"
."<td BGCOLOR=$bgcolour id='openticks-a'> $created_date </td><td BGCOLOR=$bgcolour id='openticks-b'>"
." $updated_date </td><td BGCOLOR=$bgcolour id='openticks-a'> $dept </td>"
."<td BGCOLOR=$bgcolour id='openticks-a'> $staff </td></tr>";
++$i;
}
echo "</table>";
}
else {
echo "<p style='text-align;'><span id='msg_warning'>There are no tickets open at this time.</span></p>";
}
?>