include '../inc/db.inc.php';
$id = $_GET['alumID'];
if($id)
{
$query = "select title, firstname, middlename, lastname, maidenname, suffix, photo, city,state,birthday, biography, email, participating, hits FROM gns_alums WHERE alumID='$_GET[alumID]'";
$result = mysql_query($query);
$alum = mysql_fetch_assoc($result);
if(!$admin)
mysql_query("update gns_alums set hits = hits + 1, lasthit = now() where alumID = $id");
}
echo "
";
if($alum['photo'])
echo " | ";
echo "
$alum[title] $alum[firstname] $alum[middlename] $alum[lastname] $alum[suffix]";
if($alum['maidenname'])
echo" ($alum[maidenname])";
echo " | ";
echo "
";
if($alum['city'])
echo"$alum[city], $alum[state]";
if(false)
echo" ";
echo" |
";
$photoQueryResult = retrieve_alum_photos($id);
if(mysql_num_rows($photoQueryResult))
{
echo "
Click on a picture to view a larger version. |
";
$numCols = 3;
$i =0;
while ($row = mysql_fetch_array($photoQueryResult))
{
if($i % $numCols == 0)
{
echo " ";
}
$photoID = $row['photoID'];
$photoFileName = $row['photo_url'];
$title = $row['title'];
echo "
$title | ";
if($i++ % $numCols == ($numCols - 1) )
{ echo "
";}
}
if($i % $numCols != 0)
{
while( ($i++ % $numCols) != 0)
{
echo " | ";
}
echo "";
}
echo "
";
}
if($alum['participating'] == 1)
echo "
$alum[biography]
";
if($admin )
echo "
";
else if($admin)
{
echo "
";
echo "
";
} if($admin)
echo "
$alum[hits] visits
";
echo "
";
$adminLink = "