<div id=projectsTable>

<?php

// open projects data file and parses projects information

# flat CSV file holding directory data 
$projects_fname = "data/presentations_data.csv";

# all records in file
$records = array();

# iterate through and read all records
$row = 1;
$handle = fopen($projects_fname, "r");

while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {

  // append this line to array of records
  $records[] = $data;

}

echo "<table>\n";

// step through each presentation
$nrecords =  count($records);
for ($d=0; $d < $nrecords; $d++) {
  $line = $records[$d];

  // yes, so display
  echo "    <tr>\n";
  echo "      <td><a href='$line[1]' target='_new'><span class=itemtitle>$line[0]</span></a></td>\n";
  echo "    </tr>\n";
  echo "    <tr>\n";
  echo "      <td><p>$line[2]</p></td>\n";
  echo "    </tr>";
  // output horizontal spacer
  echo "    <tr><td>&nbsp;</td></tr>\n";
   
}

// output horizontal spacer
echo "    <tr><td>&nbsp;</td></tr>\n";

echo "</table>\n";
fclose($handle);
?>

</div>














