So I ended up with this
I had to add some extra columns to the csv file to be able to make the Committee name, i.e. Activities, Unity Day, etc. only show once because of the
[if ($array13[4]==$array13[5]) {
echo "<b><h3>" . $array13[3] . "</h3></b>";]
Can you look over this code and the attached snippet of the spreadsheet to see if there is a cleaner way to do this?
[<?php
$file_handle = fopen("web_contacts.csv", "r");
while (!feof($file_handle)) {//
$array13 = fgetcsv($file_handle, 1024);
if ($array13[4]==$array13[5]) {
echo "<b><h3>" . $array13[3] . "</h3></b>";
for ($i=0;$i<=0;$i++) {//03
echo $array13[$i] . " - " . $array13[$i+1] . "<br>";
echo $array13[6] . $array13[2] . "</a><br><br>";
} //03close
}
else {
for ($i=0;$i<=0;$i++) {//
echo $array13[$i] . " - " . $array13[$i+1] . "<br>";
echo $array13[6] . $array13[2] . "</a><br><br>";
} //10close
}
//print_r($array13);
}
fclose($file_handle);
?>]
[ATTACH]4605[/ATTACH]
Thanks for teaching!!
Screen shot 2012-07-30 at 5.25.56 PM.png