".$answer[1][$i+1]."
"; } return $contentvar; } if($_GET['page'] != '') { $page = $_GET['page']; } else { $page = 1; } mysql_connect('localhost', 'root'); //DO NOT RELEASE mysql_select_db('dept_coredb'); $query = "SELECT * from vitals"; $result = mysql_query($query); $entry = mysql_fetch_array($result); $deptName = $entry[deptName]; $deptAbbv = $entry[deptAbbv]; $deptLogo = $entry[deptLogo]; $address1 = $entry[address1]; $address2 = $entry[address2]; $city = $entry[city]; $state = $entry[state]; $zip = $entry[zip]; $phone = $entry[phone]; if($_GET['group'] != '') { $groupID = $_GET['group']; $query = "SELECT * from groups WHERE groupID = $groupID"; $result = mysql_query($query); $entry = mysql_fetch_array($result); $groupName = $entry[groupName]; $groupDesc = $entry[groupDesc]; $links = $entry[links]; if($page == 1) { $pageName = "Group Description"; $content = "
$groupDesc"; } else if ($page == 2) { $pageName = "Members"; $content = "
"; $content.include('members.php'); } else if ($page == 3) { $pageName = "Papers"; $content = "
"; $content.include('papers.php'); } else if ($page == 4) { $pageName = "Projects"; $content = "
"; $content.include('projects.php'); } else if ($page == 5) { $pageName = "Related Links"; $localLinks = localLinks($links); $content = "
$localLinks"; } } else { $groupName = "$deptAbbv Research Groups"; $content = "The definitive list.
"; $query = "SELECT * from groups"; $result = mysql_query($query); for ($i = 0; $i < mysql_num_rows($result); $i++) { mysql_data_seek($result, $i); $entry = mysql_fetch_array($result); $content = $content."$entry[groupName]
"; } } ?>
> Research Groups > $groupName >"); } ?> | |
- - , - |