Hi Weed,
I see the confusion now, I am using man_id as a index with man_name as the name to select so the drop down list index will be exactly as entered into the DB table.
Here is the "other" code for man_id and man_name
$sql->tran_begin();
$sql_stmt = null;
$sql_stmt = "INSERT INTO model (model_id, model_name, manufacturer_man_name, manufacturer_man_id, model_year, model_version, model_delete, vehicle_type)" .
" VALUES ('null', '$model_name', '$man_name', $man_id, '$year_list', 'null', 'false', '$vehicle_type[$vehicle_type_list]');";
$sql->sql_execute($sql_stmt);
if ($sql_array["sql_status"]) {
$sql->tran_commit();
$d->x("model inserted into DB");
}
else {
$sql->tran_rollback();
}
I am interested in your reply as I know you are a good programmer so is this ok?
BBK 🙂