Here is the fixed script to be able to submit to my database...
<?php
$con = mysql_connect("***","*","*****");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("database_name", $con);
if($_POST['submit'])
{
$part_num_in=$_POST['part_num_in'];
$cca_in=$_POST['cca_in'];
$ca_in=$_POST['ca_in'];
$rc_minutes_in=$_POST['rc_minutes_in'];
$warranty_period_sel=$_POST['warranty_period_sel'];
$free_replace_sel=$_POST['free_replace_sel'];
$list_price_in=$POST['list_price_in'];
$kap_price_in=$POST['kap_price_in'];
$bci_group_in=$POST['bci_group_in'];
$bat_length_in=$POST['bat_length_in'];
$bat_width_in=$POST['bat_width_in'];
$bat_height_in=$POST['bat_height_in'];
$sql="INSERT INTO table_name (id, part_num_in, cca_in, ca_in, rc_minutes_in, warranty_period_sel, free_replace_sel, list_price_in, kap_price_in, bci_group_in, bat_length_in, bat_width_in, bat_height_in) VALUES (NULL, '$part_num_in', '$cca_in', '$ca_in', '$rc_minutes_in', '$warranty_period_sel', '$free_replace_sel', '$list_price_in', '$kap_price_in', '$bci_group_in', '$bat_length_in', '$bat_width_in', '$bat_height_in')";
}
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
echo "1 record added";
mysql_close($con);
?>
Problems that I fixed...
1) if($_POST['submit']) ...the 'submit' part was left as 'action'...it should match the name of the button on the submit form page.
2)Line just under the '$sql=' string needed a closing curly bracket to end the if statement properly.
3)Had to define the name of the submit button on the form page that goes with this script. Without the 'name=submit' tag, I kept getting Error Query Empty errors. This is now fixed as well.
4) The last problem I found was that the BCI Group info wasn't getting entered into MYSQL at all. I found that I had forgotten the _in part of the variable name in the upper part of the submit script. Since I had copied the wrong name when I defined it and then pasted it throughout the rest of the script, it is no wonder it didn't work.
Simple mistakes often seem to create the biggest problems. Syntax, Syntax, Syntax...Thanks Again for the guidance!