$row[Page_Header]


$row[Page_Content]
"; EndPage(); mysql_free_result($result); break; case "rss": ob_clean(); header('Content-type: text/xml'); print " 86th Ohio Regiment http://www.86th.org en-us 86th's news RSS feed 86thNews "; $result = mysql_query("SELECT * FROM news ORDER BY MyID DESC LIMIT 0, 20"); while ($row = mysql_fetch_array($result)) { print " $row[MySubject] http://www.86th.org/ $row[MyContent] ]]> "; } print " "; break; case "": StartPage(" - News"); $temprow = mysql_fetch_array(mysql_query("SELECT COUNT(*) AS MyCount FROM news")); $TotalRec = $temprow[0]; if ($TotalRec > 10){ if ($PageNum == ""){ $limiter = "LIMIT 0,10"; $PageNum = 1; } else{ $PageNum = intval($PageNum); $limiter = "LIMIT ".(($PageNum*10)-10).",".($PageNum*10).""; } } if (round($TotalRec/10) == ($TotalRec/10)){ $TotalPages = ($TotalRec/10); } else{ $TotalPages = round($TotalRec/10)+1; } for ($i = 1; $i < $TotalPages; $i++){ if ($i == $PageNum){ $navstring.= "$i "; } else{ $navstring.= "[$i] "; } } $navstring = "News Page $navstring"; print "
$navstring
Newsfeed

"; $result = mysql_query("SELECT * FROM news ORDER BY MyID DESC $limiter"); while ($row = mysql_fetch_array($result)) { print "

 » $row[MySubject] [$row[MyDate]]
       $row[MyContent]
- $row[MyAuthor]



"; } print "
$navstring

"; mysql_free_result($result); EndPage(); break; case "members": StartPage("Members"); switch ($mbrid){ default : MembersHeader(); $arrPrimaries = array(); $arrSecondaries = array(); $result = mysql_query("SELECT * FROM Members WHERE MbrID = $mbrid"); $wepresult1 = mysql_query("SELECT * FROM weapons WHERE MbrID = $mbrid AND Type = '1'"); $wepresult2 = mysql_query("SELECT * FROM weapons WHERE MbrID = $mbrid AND Type = '2'"); while ($row = mysql_fetch_array($wepresult1)){ array_push($arrPrimaries, $row[WepID]); $Primaries .= "$row[Make] $row[Model]
($row[FPS] fps) [View Details]

"; } while ($row = mysql_fetch_array($wepresult2)){ array_push($arrSecondaries, $row[WepID]); $Secondaries .= "$row[Make] $row[Model]
($row[FPS] fps) [View Details]

"; } $row = mysql_fetch_array($result); if ($row[MemberPic] != ""){ print "


"; } print "

Bio

Name $row[Name] aka $row[Alias]
Position $row[Position]
Location $row[Location]
Division $row[Division]
Interests $row[Interests]
Occupation $row[Occupation]
Contact $row[ContactEmail]
AIM: $row[ContactAim]
Cell: $row[ContactPhone]
History $row[MbrHistory]

Equipment

Primary
weapons
$Primaries
Secondary
weapons
$Secondaries
"; print "

Primary Weapons

"; foreach($arrPrimaries as $value){ ShowWeaponInfo($value); } print "

Secondary Weapons

"; foreach($arrSecondaries as $value){ ShowWeaponInfo($value); } print "





"; break; case "": MembersHeader(); break; } EndPage(); break; case "pics": StartPage("- Pictures"); print "