check out the changes i have done, also it will always echo out record cancelled no matter if query returns true or false the way you have it written, notice the way i have grabbed the values with mysql_fetch_array, instead of the way you had, change all them to what i did and try that
<?
include("dbinfo.inc.php");
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query2 = "SELECT * FROM Master WHERE id='$id';";
$result2 = mysql_query($query2);
while ($row = mysql_fetch_array($result2))
{
// ----------------------
$AccountName = $row['AccountName']; // use this for each variable, not like you have below
// ----------------------
$FirstName=mysql_result($result2,$i,"FirstName");
$LastName=mysql_result($result2,$i,"LastName");
$OrganizationName=mysql_result($result2,$i,"OrganizationName");
$EmailAddress=mysql_result($result2,$i,"EmailAddress");
$Address=mysql_result($result2,$i,"Address");
$City=mysql_result($result2,$i,"City");
$State=mysql_result($result2,$i,"State");
$Zip=mysql_result($result2,$i,"Zip");
$HomePhone=mysql_result($result2,$i,"HomePhone");
$WorkPhone=mysql_result($result2,$i,"WorkPhone");
$SetUpDate=mysql_result($result2,$i,"SetUpDate");
$AccntPassword=mysql_result($result2,$i,"AccntPassword");
$AccntType=mysql_result($result2,$i,"AccntType");
$MonthlyFee=mysql_result($result2,$i,"MonthlyFee");
$ServerName=mysql_result($result2,$i,"ServerName");
$FrntPg=mysql_result($result2,$i,"FrntPg");
$RealAudio=mysql_result($result2,$i,"RealAudio");
$MySql=mysql_result($result2,$i,"MySql");
$SmartSeller=mysql_result($result2,$i,"SmartSeller");
$SmartEdit=mysql_result($result2,$i,"SmartEdit");
$RefLogs=mysql_result($result2,$i,"RefLogs");
$ChatVolcano=mysql_result($result2,$i,"ChatVolcano");
$Reseller=mysql_result($result2,$i,"Reseller");
$MasterAccnt=mysql_result($result2,$i,"MasterAccnt");
$ResoldAccntCharge=mysql_result($result2,$i,"ResoldAccntCharge");
$OtherCharges=mysql_result($result2,$i,"OtherCharges");
$PaymentMethod=mysql_result($result2,$i,"PaymentMethod");
$CreditCardNumber=mysql_result($result2,$i,"CreditCardNumber");
$ExpirationDate=mysql_result($result2,$i,"ExpirationDate");
$NameonCard=mysql_result($result2,$i,"NameonCard");
$NextBillDate=mysql_result($result2,$i,"NextBillDate");
$PaymentComments=mysql_result($result2,$i,"PaymentComments");
$Comments=mysql_result($result2,$i,"Comments");
$PromoCode=mysql_result($result2,$i,"PromoCode");
$ProductName=mysql_result($result2,$i,"ProductName");
?>
<?
++$i;
}
?>
<?
include("dbinfo.inc.php");
mysql_connect(localhost,$username,$password);
$query="INSERT INTO Cancelled (id, AccountName, FirstName, LastName, OrganizationName, EmailAddress, Address, City, State, Zip, HomePhone, WorkPhone, SetUpDate, AccntPassword, AccntType, MonthlyFee, ServerName, FrntPg, RealAudio, MySql, SmartSeller, SmartEdit, RefLogs, ChatVolcano, Reseller, MasterAccnt, ResoldAccntCharge, OtherCharges, PaymentMethod, CreditCardNumber, ExpirationDate, NameonCard, NextBillDate, PaymentComments, Comments, PromoCode, ProductName) VALUES ('$id', '$AccountName', '$FirstName', '$LastName', '$OrganizationName', '$EmailAddress', '$Address', '$City', '$State', '$Zip', '$HomePhone', '$WorkPhone', '$SetUpDate', '$AccntPassword', '$AccntType', '$MonthlyFee', '$ServerName', '$FrntPg', $RealAudio', '$MySql', '$SmartSeller', '$SmartEdit', '$RefLogs', '$ChatVolcano', '$Reseller', '$MasterAccnt', '$ResoldAccntCharge', '$OtherCharges', '$PaymentMethod', '$CreditCardNumber', '$ExpirationDate', '$NameonCard', '$NextBillDate', '$PaymentComments', '$Comments', '$PromoCode', '$ProductName')";
@mysql_select_db($database) or die( "Unable to select database");
mysql_query($query);
echo "Record Cancelled";
mysql_close();
?>