Sign Up

[insert_php]
if (!isset($_SESSION)) {
session_start();
}

# FileName=”Connection_pdo_mysql.htm”
# Type=”MYSQL”
# HTTP=”true”
$hostname = “mysql1005.mochahost.com”;
$database = “fosco1_foscopa”;
$username = “fosco1_wp527”;
$password = “S82..2qi9p”;
$connStr = ‘mysql:host=mysql1005.mochahost.com;dbname=fosco1_foscopa’;
$user = ‘fosco1_wp527’;
$pass = ‘S82..2qi9p’;
//set_exception_handler(‘exceptionHandler’);
try
{
$conn = new PDO($connStr, $user, $pass);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
catch(PDOException $e)
{
showError(“Sorry, an error has occurred. Please try your request
later\n” . $e->getMessage());
}

$seed = str_split(‘abcdefghijklmnopqrstuvwxyz’
.’ABCDEFGHIJKLMNOPQRSTUVWXYZ’
.’0123456789!@#$%^&*()’); // and any other characters
shuffle($seed); // probably optional since array_is randomized; this may be redundant
$rand = ”;
foreach (array_rand($seed, 10) as $k)
$rand .= $seed[$k];

if(isset($_POST[‘edit’])){
// Issue the query
$members = $conn->query(“SELECT members.f_mid, members.f_surname, members.f_title, members.f_othername, members.f_sex, members.f_photo, members.f_phone_work, f_phone_mobile, f_occupation, f_year_group, f_place_of_work, f_address, f_city, f_region, f_country, members.f_email FROM members where members.f_mid='”.$_POST[‘edit’].”‘ “);
$members->setFetchMode(PDO::FETCH_ASSOC);
$rmembers=$members->fetch();
}

if(isset($_GET[‘edit’])){
// Issue the query
$members = $conn->query(“SELECT members.f_mid, members.f_surname, members.f_title, members.f_othername, members.f_sex, members.f_photo, members.f_phone_work, f_phone_mobile, f_occupation, f_place_of_work, f_address, f_city, f_region, f_country, f_year_group, members.f_email FROM members where members.f_mid='”.$_GET[‘edit’].”‘ “);
$members->setFetchMode(PDO::FETCH_ASSOC);
$rmembers=$members->fetch();
}

$years=array_combine(range(date(‘Y’), 1965), range(date(‘Y’), 1965));

$countries=array(‘Afghanistan’, ‘Akrotiri’, ‘Albania’, ‘Algeria’, ‘American Samoa’, ‘Andorra’, ‘Anguilla’, ‘Antarctica’, ‘Antigua and Barbuda’, ‘Argentina’, ‘Armenia’, ‘Aruba’, ‘Ashmore and Cartier Islands’, ‘Australia’, ‘Austria’, ‘Azerbaijan’, ‘Bahamas’, ‘Bahrain’, ‘Bangladesh’, ‘Barbados’, ‘Bassas de India’, ‘Belarus’, ‘Belgium’, ‘Belize’, ‘Benin’, ‘Bermuda’, ‘Bhutan’, ‘Bolivia’, ‘Bosnia and Herzegovina’, ‘Botswanna’, ‘Bouvet Island’, ‘Brazil’, ‘British Indian Ocean Territory’, ‘British Virgin Islands’, ‘Brunei’, ‘Bulgaria’, ‘Burkina Faso’, ‘Burma’, ‘Burundi’, ‘Cambodia’, ‘Cameroon’, ‘Canada’, ‘Cape Verde’, ‘Cayman Islands’, ‘Central African Republic’, ‘Chad’, ‘Chile’, ‘China’, ‘Christmas Island’, ‘Clipperton Island’, ‘Cocoas (Keeling) Islands’, ‘Colombia’, ‘Comoros’, ‘Congo (Democratic Republic)’, ‘Congo (Republic)’, ‘Cook Islands’, ‘Coral Sea Islands’, ‘Costa Rica’, “Cote d’lvoire”, ‘Croatia’, ‘Cuba’, ‘Cyprus’, ‘Czech Republic’, ‘Denmark’, ‘Dhekelia’, ‘Djibouti’, ‘Dominica’, ‘Dominican Republic’, ‘Ecuador’, ‘Egypt’, ‘El Salvador’, ‘Equatorial Guinea’, ‘Eritrea’, ‘Estonia’, ‘Ethiopia’, ‘Europa Island’, ‘Falkland Islands (Islas Malvinas)’, ‘Faroe Islands’, ‘Fiji’, ‘Finland’, ‘France’, ‘French Guinea’, ‘French Polynesia’, ‘French Southern and Antarctic Lands’, ‘Gabon’, ‘Gambia’, ‘Gaza Strip’, ‘Georgia’, ‘Germany’, ‘Ghana’, ‘Gibraltar’, ‘Glorioso Islands’, ‘Greece’, ‘Greenland’, ‘Grenada’, ‘Guadeloupe’, ‘Guam’, ‘Guatemala’, ‘Guernsey’, ‘Guinea’, ‘Guinea-Bissau’, ‘Guyana’, ‘Haiti’, ‘Heard Island and McDonald Islands’, ‘Holy See (Vatican City)’, ‘Honduras’, ‘Hong Kong’, ‘Hungary’, ‘Iceland’, ‘India’, ‘Indonesia’, ‘Iran’, ‘Iraq’, ‘Ireland’, ‘Isle of Man’, ‘Israel’, ‘Italy’, ‘Jamaica’, ‘Jan Mayen’, ‘Japan’, ‘Jersey’, ‘Jordan’, ‘Juan de Nova Island’, ‘Kazakhstan’, ‘Kenya’, ‘Kiribati’, ‘Korea (North)’, ‘Korea (South)’, ‘Kuwait’, ‘Kyrgyzstan’, ‘Laos’, ‘Latvia’, ‘Lebanon’, ‘Lesotho’, ‘Liberia’, ‘Libya’, ‘Liechtenstein’, ‘Lithuania’, ‘Luxembourg’, ‘Macau’, ‘Macedonia’, ‘Madagascar’, ‘Malawi’, ‘Malaysia’, ‘Maldives’, ‘Mali’, ‘Malta’, ‘Marshall Islands’, ‘Martinique’, ‘Mauritania’, ‘Mauritius’, ‘Mayotte’, ‘Mexico’, ‘Micronesia (Federated States)’, ‘Moldova’, ‘Monaco’, ‘Mongolia’, ‘Montserrat’, ‘Morocco’, ‘Mozambique’, ‘Namibia’, ‘Nauru’, ‘Navassa Island’, ‘Nepal’, ‘Netherlands’, ‘Netherlands Antilles’, ‘New Caledonia’, ‘New Zealand’, ‘Nicaragua’, ‘Niger’, ‘Nigeria’, ‘Niue’, ‘Norfolk Island’, ‘Northern Mariana Islands’, ‘Norway’, ‘Oman’, ‘Pakistan’, ‘Palau’, ‘Panama’, ‘Papua New Guinea’, ‘Paracel Islands’, ‘Paraguay’, ‘Peru’, ‘Philippines’, ‘Pitcairn Islands’, ‘Poland’, ‘Portugal’, ‘Puerto Rico’, ‘Qatar’, ‘Reunion’, ‘Romania’, ‘Russia’, ‘Rwanda’, ‘Saint Helena’, ‘Saint Kitts and Nevis’, ‘Saint Lucia’, ‘Saint Pierre and Miquelon’, ‘Saint Vincent and the Grenadines’, ‘Samoa’, ‘San Marino’, ‘Sao Tome and Principe’, ‘Saudi Arabia’, ‘Senegal’, ‘Serbia and Montenegro’, ‘Seychelles’, ‘Sierra Leone’, ‘Singapore’, ‘Slovakia’, ‘Slovenia’, ‘Solomon Islands’, ‘Somalia’, ‘South Africa’, ‘South Georgia and the South Sandwich Islands’, ‘Spain’, ‘Spratly Islands’, ‘Sri Lanka’, ‘Sudan’, ‘Suriname’, ‘Svalbard’, ‘Swaziland’, ‘Sweden’, ‘Switzerland’, ‘Syria’, ‘Taiwan’, ‘Tajikistan’, ‘Tanzania’, ‘Thailand’, ‘Timor-Leste’, ‘Togo’, ‘Tokelau’, ‘Tonga’, ‘Trinidad and Tobago’, ‘Tromelin Island’, ‘Tunisia’, ‘Turkey’, ‘Turkmenistan’, ‘Turks and Caicos Islands’, ‘Tuvalu’, ‘Uganda’, ‘Ukraine’, ‘United Arab Emirates’, ‘United Kingdom’, ‘United States’, ‘Uruguay’, ‘Uzbekistan’, ‘Vanuatu’, ‘Venezuela’, ‘Vietnam’, ‘Virgin Islands’, ‘Wake Island’, ‘Wallis and Futuna’, ‘West Bank’, ‘Western Sahara’, ‘Yemen’, ‘Zambia’, ‘Zimbabwe’);
[/insert_php]

[insert_php]
echo ‘

Sign Up



Exclude City and Country

‘;

if (!(isset($_GET[‘edit’]))) {
echo ‘



‘;
}
echo ‘


The information you provide will be available to College Administration and fellow Alumni who have also signed up.

‘;
if (!(isset($_GET[‘edit’]))) {
echo ‘


‘;
} else {

echo ‘
‘;
}
echo ‘

‘;
[/insert_php]