I got that working, and now I want to pass the IDNumber on again, but it isn't working, it's just passing along a 0 value. What would you recommend? Here's my code.
$IDNumber = "";
$Company = $_POST['Company'];
$Description = $_POST['Description'];
$Ticker = $_POST['Ticker'];
$Ticker2 = $_POST['Ticker2'];
$Sector = $_POST['Sector'];
$Industry = $_POST['Industry'];
$Country = $_POST['Country'];
$Currency = $_POST['Currency'];
$Index1 = $_POST['Index1'];
$Index2 = $_POST['Index2'];
$Competitor = $_POST['Competitor'];
$Competitor2 = $_POST['Competitor2'];
$Competitor3 = $_POST['Competitor3'];
$Competitor4 = $_POST['Competitor4'];
$Competitor5 = $_POST['Competitor5'];
$Competitor6 = $_POST['Competitor6'];
$FinUnits = $_POST['FinUnits'];
$CorporateStatus = $_POST['CorporateStatus'];
$sql = "INSERT INTO General (Ticker, Ticker2, Company, Country, Sector, Industry, Competitor, Competitor2, Competitor3, Competitor4, Competitor5, Competitor6, FinUnits, Currency, Description, Index1, Index2, CorporateStatus) VALUES ('$Ticker', '$Ticker2', '$Company', '$Country', '$Sector', '$Industry', '$Competitor', '$Competitor2', '$Competitor3', '$Competitor4', '$Competitor5', '$Competitor6', '$FinUnits', '$Currency', '$Description', '$Index1', '$Index2', '$CorporateStatus')";
$result = mysql_query($sql, $db) or die ('There was a problem with the query: ' . $sql . '<br>' . mysql_error());
$IDNumber2 = mysql_insert_id();
$Entry = Notes;
$IDString = $IDNumber2.$Entry;
$sql = "INSERT INTO IncNotes (IDString, IDNumber, Data) VALUES ('$IDString', '$IDNumber2', '$Entry')";
$result = mysql_query($sql, $db) or die ('There was a problem with the query: ' . $sql . '<br>' . mysql_error());
$IDNumber3 = mysql_insert_id();
$Entry = Equity;
$IDString = $IDNumber3.$Entry;
$sql = "INSERT INTO BalanceSheet (IDString, IDNumber, Data) VALUES ('$IDString', '$IDNumber3', '$Entry')";
$result = mysql_query($sql, $db) or die ('There was a problem with the query: ' . $sql . '<br>' . mysql_error());
mysql_close();