almost there...just a little more help please.
<?php
// WA Application Builder Insert
if (isset($_POST["Insert_x"])) // Trigger
{
$WA_connection = $Auto_Sales;
$WA_table = "inventory_tbl";
$WA_sessionName = "WADA_Insert_inventory_tbl";
$WA_redirectURL = "";
if (function_exists("rel2abs")) $WA_redirectURL = $WA_redirectURL?rel2abs($WA_redirectURL,dirname(__FILE__)):"";
$WA_keepQueryString = false;
$WA_indexField = "Inventory_ID";
$WA_fieldNamesStr = "Dealer_Name|Price|Make|Model|Year|Engine|Drivetrain|Transmission|Mileage|Ext_Color|Int_Color|Body_Style|VIN|Stock_Number|Description|Date_Online|Expires|pwr_windows|pwr_locks|rear_slider|DVD|3rd_seat|premium_sound|leather|bed_liner|Dealer_TBL_Dealer_ID|Status|City|Contact_Phone";
$WA_fieldValuesStr = "".((isset($_POST["Dealer_Name"]))?$_POST["Dealer_Name"]:"") ."" . "|" . "".((isset($_POST["Price"]))?$_POST["Price"]:"") ."" . "|" . "".((isset($_POST["Make"]))?$_POST["Make"]:"") ."" . "|" . "".((isset($_POST["Model"]))?$_POST["Model"]:"") ."" . "|" . "".((isset($_POST["Year"]))?$_POST["Year"]:"") ."" . "|" . "".((isset($_POST["Engine"]))?$_POST["Engine"]:"") ."" . "|" . "".((isset($_POST["Drivetrain"]))?$_POST["Drivetrain"]:"") ."" . "|" . "".((isset($_POST["Transmission"]))?$_POST["Transmission"]:"") ."" . "|" . "".((isset($_POST["Mileage"]))?$_POST["Mileage"]:"") ."" . "|" . "".((isset($_POST["Ext_Color"]))?$_POST["Ext_Color"]:"") ."" . "|" . "".((isset($_POST["Int_Color"]))?$_POST["Int_Color"]:"") ."" . "|" . "".((isset($_POST["Body_Style"]))?$_POST["Body_Style"]:"") ."" . "|" . "".((isset($_POST["VIN"]))?$_POST["VIN"]:"") ."" . "|" . "".((isset($_POST["Stock_Number"]))?$_POST["Stock_Number"]:"") ."" . "|" . "".((isset($_POST["Description"]))?$_POST["Description"]:"") ."" . "|" . "".((isset($_POST["Date_Online"]))?$_POST["Date_Online"]:"") ."" . "|" . "".((isset($_POST["Expires"]))?$_POST["Expires"]:"") ."" . "|" . "".((isset($_POST["pwr_windows"]))?$_POST["pwr_windows"]:"") ."" . "|" . "".((isset($_POST["pwr_locks"]))?$_POST["pwr_locks"]:"") ."" . "|" . "".((isset($_POST["rear_slider"]))?$_POST["rear_slider"]:"") ."" . "|" . "".((isset($_POST["DVD"]))?$_POST["DVD"]:"") ."" . "|" . "".((isset($_POST["3rd_seat"]))?$_POST["3rd_seat"]:"") ."" . "|" . "".((isset($_POST["premium_sound"]))?$_POST["premium_sound"]:"") ."" . "|" . "".((isset($_POST["leather"]))?$_POST["leather"]:"") ."" . "|" . "".((isset($_POST["bed_liner"]))?$_POST["bed_liner"]:"") ."" . "|" . "".((isset($_POST["Dealer_TBL_Dealer_ID"]))?$_POST["Dealer_TBL_Dealer_ID"]:"") ."" . "|" . "".((isset($_POST["Status"]))?$_POST["Status"]:"") ."" . "|" . "".((isset($_POST["City"]))?$_POST["City"]:"") ."" . "|" . "".((isset($_POST["Contact_Phone"]))?$_POST["Contact_Phone"]:"") ."";
$WA_columnTypesStr = "',none,''|none,none,NULL|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|none,none,NULL|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,NULL|',none,''|none,none,NULL|none,none,NULL|none,none,NULL|none,none,NULL|none,none,NULL|none,none,NULL|none,none,NULL|none,none,NULL|none,none,NULL|',none,''|',none,''|',none,''";
$WA_fieldNames = explode("|", $WA_fieldNamesStr);
$WA_fieldValues = explode("|", $WA_fieldValuesStr);
$WA_columns = explode("|", $WA_columnTypesStr);
$WA_connectionDB = $database_Auto_Sales;
mysql_select_db($WA_connectionDB, $WA_connection);
if (!session_id()) session_start();
$insertParamsObj = WA_AB_generateInsertParams($WA_fieldNames, $WA_columns, $WA_fieldValues, -1);
$WA_Sql = "INSERT INTO `" . $WA_table . "` (" . $insertParamsObj->WA_tableValues . ") VALUES (" . $insertParamsObj->WA_dbValues . ")";
$MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());
$_SESSION[$WA_sessionName] = mysql_insert_id();
if ($WA_redirectURL != "") {
if ($WA_keepQueryString && $WA_redirectURL != "" && isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] !== "" && sizeof($_POST) > 0) {
$WA_redirectURL .= ((strpos($WA_redirectURL, '?') === false)?"?":"&").$_SERVER["QUERY_STRING"];
}
header("Location: ".$WA_redirectURL);
}
}
?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["Insert_x"])){
WA_DFP_UploadFiles("WA_UploadResult1", "Photo_1_File", "0", "", "JPG:80", $WA_UploadResult1_Params);
}
?>
<?php
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "./".$_SESSION['Dealer_Name'] ."/images/".$_POST["WADA_Insert_inventory_tbl"] ."/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "0",
'ResizeWidth' => "120",
'ResizeHeight' => "120",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_1 End
it is not seeing the image name now. folder is creating but image not being saved.