include "common_db.php";
define("DEFAULT_NUM_RECS2", 120);
$link_id = db_connect($default_dbname);
$sqlcategory = "select * from projects p, project_name d where p.project_folder=d.project_folder ORDER BY d.project_folder asc";
$resultcategory = mysql_query($sqlcategory, $link_id);
while ($rowcategory=mysql_fetch_array($resultcategory)){
if ($i!=$rowcategory['project_folder']) {
$i = $rowcategory['project_folder'];
$z = $total % 3;
if ($z=="0") {
echo "