It's giving me an error but not telling me why it's not working.
Any ideas would be appreciated. Here's my code:
$conn = mysqli_connect($hostname, $username, $password) OR DIE
("Unable to connect to database! Please try again later.");
$CustNameFirst = $_POST['CustNameFirst'];
$CustNameLast = $_POST['CustNameLast'];
$CustEmail = $_POST['CustEmail'];
$Address1 = $_POST['Address1'];
$Address1 = $_POST['Address2'];
$City = $_POST['City'];
$State = $_POST['State'];
$ZipCode = $_POST['ZipCode'];
$CustPhone = $_POST['CustPhone'];
$Brand = $_POST['Brand'];
$ProdName = $_POST['ProdName'];
$Store = $_POST['Store'];
$StoreAddress = $_POST['StoreAddress'];
$Neighborhood = $_POST['Neighborhood'];
$ProductFound = $_POST['ProductFound'];
$Comments = $_POST['Comments'];
mysqli_select_db($conn, $dbname);
/*Insert data into tblCustomer*/
mysqli_query($conn, "Insert into tblCustomer
(CustNameFirst, CustNameLast, CustEmail, Address1, Address2, City, State, ZipCode, CustPhone, Brand, ProdName, Store, StoreAddress, Neighborhood, ProductFound, Comments)
Values ('$CustNameFirst', '$CustNameLast', '$CustEmail', '$Address1', '$Address2', '$City', '$State', '$ZipCode', '$CustPhone', '$Brand', '$ProdName', '$Store', '$StoreAddress', '$Neighborhood', '$ProductFound', '$Comments");
If(!$mysqli_query )
{
die ('Could not enter Customer data: '. mysql_error());
}