Ok I inserted it into my test file but I don't think I have the DB set up correctly as it is still showing a number instead of the uniqe ID. Here is the php code.
<?
include("dbinfo.inc.php");
$first=$_POST['first'];
$last=$_POST['last'];
$phone=$_POST['phone'];
$mobile=$_POST['mobile'];
$fax=$_POST['fax'];
$email=$_POST['email'];
$web=$_POST['web'];
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "INSERT INTO contacts VALUES ('','$first','$last','$phone','$mobile','$fax','$email','$web')";
mysql_query($query);
$getTCID= mysql_query("SELECT * FROM contacts WHERE TCID ORDER BY TCID DESC ")or die(mysql_error());
$tc = mysql_fetch_array($getTCID);
$tc_result = $tc['TCID'] + 1;
$tc2= mysql_query("INSERT INTO contacts (TCID) VALUES ('$tc_result')");
{
echo "Thanks for your help while we continue to develop. Click the Home button in the up left corner to return back to the Home Page.";
}
mysql_close();
?>
DB
`TCID` int(6) NOT NULL auto_increment,
Thanks for the help