Code: Select all
if ($outcome == "Sale")
{
$insertsale="INSERT into sold (transferid, datasource, lastupdatedby, title, firstname, lastname, address1, postcode, homenumber, mobilenumber, worknumber, numberofcreditors, totaldebt, monthlypayments, debtinfo, struggling, bandc, carvaninsurance, gaselectricquote, outcome, transferedto, agent, results, notes, soldby) VALUES ('$transferid','$datasource','$repname','$title','$firstname','$lastname','$address1','$postcode','$homenumber','$mobilenumber','$worknumber','$numberofcreditors','$totaldebt','$monthlypayments','$debtinfo','$struggling','$bandc','$carvaninsurance','$gaselectricquote','$outcome','$transferedto','$agent','','','$soldby')";
mysql_query($insertsale) or die("Could not insert sale");