NEW ITEMS
"; } else { echo "
  TOOL CACHE $program_name NEW ITEMS

"; } // QUERY NEW ITEMS TABLE $query = "SELECT * FROM new_items WHERE program='{$_GET['action']}' ORDER BY part_number"; $query_result = mysql_query($query); $query_count = mysql_numrows($query_result); echo ""; // START TABLE $per_line = 3; $new_row=0; for ($i=0; $i<$query_count; $i++) { // LOOP THROUGH QUERY RESULTS $part_number = mysql_result($query_result,$i,'part_number'); $image = $part_number.".jpg"; $image_lg = $part_number."_lg.jpg"; // DETERMINE OPEN TAGS $look_ahead = $new_row+1; $look_back = $new_row; if ($look_back % $per_line == 0) { echo ""; } // CONTENTS TO BE DISPLAYED IN POPUP WINDOW echo ""; } else { echo ""; } $new_row++; } echo "
\"$image\""; echo "
item # $part_number
"; //$img = getimagesize("../media/new_items/".$image_lg); //print_r($img); // JAVASCRIPT POPUP WINDOW FUNCTION CALL ?>View Large
"; // DETERMINE CLOSING TAGS if ($look_ahead % $per_line == 0) { echo "
"; // END TABLE $date_query = "SELECT * FROM new_items WHERE program='{$_GET['action']}' ORDER BY date_added DESC"; $date_result = MYSQL_QUERY($date_query); $date = MYSQL_RESULT($date_result,0,"date_added"); echo "

Last Updated: $date
"; // INCLUDE FOOTER FILE include ("/home/users/d/dsolutio/public_html/media/footer.html"); ?>