if (!$userid){ header("Location: /login.shtml \r\n\r\n"); } include("../../data/matchmasters/variables.inc"); if ($EmailAddress && $Education && $CountryOfOrigin){ $db = mysql_pconnect($dbhost, $dbuser, $dbpass); mysql_select_db($dbname,$db); $save = mysql_query("UPDATE profiles set CountryOfOrigin = '$CountryOfOrigin', Education = '$Education', EmailAddress = '$EmailAddress' where profilenumber = $userid"); #echo "UPDATE profiles set CountryOfOrigin = '$CountryOfOrigin', Education = '$Education', EmailAddress = '$EmailAddress' where profilenumber = $userid"; #exit; if($paid){ header("Location: /matchmasters/ARmenu2.php\r\n\r\n"); }else { header("Location: /matchmasters_u/ARmenu2.php\r\n\r\n"); } exit; } include("../matchmasters/templates/ARheader.shtml"); if (!$EmailAddress){ $db = mysql_pconnect($dbhost, $dbuser, $dbpass); mysql_select_db($dbname,$db); $email = mysql_query("SELECT EmailAddress from profiles where profilenumber = $userid"); $EmailAddress =mysql_fetch_array($email); $EmailAddress = $EmailAddress[0]; } #echo "SELECT EmailAddress from profiles where UserID = $userid
"; echo "