<?php
session_start();
$username = $_SESSION['username'];
$dbhost = 'summitday.dotstermysql.com';
$dbname = 'db1019832_OralHistory';
$dbuser = 'u1019832_archive';
$dbpass = 'Ev887BEn';
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ("Couldn't connect!");
mysql_select_db($dbname, $conn);
$query = "SELECT *
FROM survey
WHERE username = '$username'";
$result = mysql_query($query);
$count = mysql_num_rows($result);
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
$_SESSION['name'] = $row['name'];
$_SESSION['organization'] = $row['organization'];
$_SESSION['email'] = $row['email'];
$_SESSION['phone'] = $row['phone'];
$_SESSION['one'] = $row['one'];
$_SESSION['two'] = $row['two'];
$_SESSION['three'] = $row['three'];
$_SESSION['four'] = $row['four'];
$_SESSION['five'] = $row['five'];
$_SESSION['six'] = $row['six'];
$_SESSION['seven'] = $row['seven'];
$_SESSION['eight'] = $row['eight'];
$_SESSION['nine'] = $row['nine'];
$_SESSION['ten'] = $row['ten'];
$_SESSION['eleven'] = $row['eleven'];
$_SESSION['twelve'] = $row['twelve'];
$_SESSION['thirteen'] = $row['thirteen'];
$_SESSION['fourteen'] = $row['fourteen'];
$_SESSION['fifteen'] = $row['fifteen'];
$_SESSION['sixteen'] = $row['sixteen'];
$_SESSION['seventeen'] = $row['seventeen'];
$_SESSION['eighteen'] = $row['eighteen'];
$_SESSION['nineteen'] = $row['nineteen'];
$_SESSION['twenty'] = $row['twenty'];
$_SESSION['twentyone'] = $row['twentyone'];
$_SESSION['twentytwo'] = $row['twentytwo'];
$_SESSION['twentythree'] = $row['twentythree'];
$_SESSION['twentyfour'] = $row['twentyfour'];
$_SESSION['twentyfive'] = $row['twentyfive'];
$_SESSION['twentysix'] = $row['twentysix'];
$_SESSION['twentyseven'] = $row['twentyseven'];
$_SESSION['twentyeight'] = $row['twentyeight'];
$_SESSION['twentynine'] = $row['twentynine'];
$_SESSION['thirty'] = $row['thirty'];
$_SESSION['thirtyone'] = $row['thirtyone'];
$_SESSION['thirtytwo'] = $row['thirtytwo'];
$_SESSION['thirtythree'] = $row['thirtythree'];
$_SESSION['thirtyfour'] = $row['thirtyfour'];
$_SESSION['thirtyfive'] = $row['thirtyfive'];
$_SESSION['thirtysix'] = $row['thirtysix'];
$_SESSION['thirtyseven'] = $row['thirtyseven'];
$_SESSION['thirtyeight'] = $row['thirtyeight'];
$_SESSION['thirtynine'] = $row['thirtynine'];
$_SESSION['forty'] = $row['forty'];
$_SESSION['fortyone'] = $row['fortyone'];
$_SESSION['fortytwo'] = $row['fortytwo'];
$_SESSION['fortythree'] = $row['fortythree'];
$_SESSION['fortyfour'] = $row['fortyfour'];
$_SESSION['fortyfive'] = $row['fortyfive'];
$_SESSION['fortysix'] = $row['fortysix'];
$_SESSION['fortyseven'] = $row['fortyseven'];
$_SESSION['fortyeight'] = $row['fortyeight'];
$_SESSION['fortynine'] = $row['fortynine'];
$_SESSION['fifty'] = $row['fifty'];
$_SESSION['fiftyone'] = $row['fiftyone'];
$_SESSION['fiftytwo'] = $row['fiftytwo'];
$_SESSION['fiftythree'] = $row['fiftythree'];
$_SESSION['fiftyfour'] = $row['fiftyfour'];
}
header("Location: surveyPage.php");
?>