I don't know why I'm having so much trouble with these plugins.
Below is my code for the file upload. I am getting the error messages attached and the wizard will not run.
----------------------------------
<?php
// WA Application Builder Update
if (isset($_POST["Update_x"])) // Trigger
{
$WA_connection = $cpDVD;
$WA_table = "family_members";
$WA_redirectURL = "/members/admin_members_Detail.php?member_id=".$_SESSION['member_id']."";
$WA_keepQueryString = false;
$WA_indexField = "family_member_id";
$WA_fieldNamesStr = "last_name|first_name|address1|address2|city|state|zip|home_phone|cell_phone|work_phone|email|birthday|groups|hobbies|comments|photo";
$WA_fieldValuesStr = "".((isset($_POST["last_name"]))?$_POST["last_name"]:"") ."" . "|" . "".((isset($_POST["first_name"]))?$_POST["first_name"]:"") ."" . "|" . "".((isset($_POST["address1"]))?$_POST["address1"]:"") ."" . "|" . "".((isset($_POST["address2"]))?$_POST["address2"]:"") ."" . "|" . "".((isset($_POST["city"]))?$_POST["city"]:"") ."" . "|" . "".((isset($_POST["state"]))?$_POST["state"]:"") ."" . "|" . "".((isset($_POST["zip"]))?$_POST["zip"]:"") ."" . "|" . "".((isset($_POST["home_phone"]))?$_POST["home_phone"]:"") ."" . "|" . "".((isset($_POST["cell_phone"]))?$_POST["cell_phone"]:"") ."" . "|" . "".(isset($_POST["work_phone"]))?$_POST["work_phone"]:"") ."" . "|" . "".((isset($_POST["email"]))?$_POST["email"]:"") ."" . "|" . "".((isset($_POST["birthday"]))?$_POST["birthday"]:"") ."" . "|" . "".((isset($_POST["groups"]))?$_POST["groups"]:"") ."" . "|" . "".((isset($_POST["hobbies"]))?$_POST["hobbies"]:"") ."" . "|" . "".((isset($_POST["comments"]))?$_POST["comments"]:"") ."". "|" . "".$WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"] ."";
$WA_columnTypesStr = "',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''";
$WA_comparisonStr = "=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=";
$WA_fieldNames = explode("|", $WA_fieldNamesStr);
$WA_fieldValues = explode("|", $WA_fieldValuesStr);
$WA_columns = explode("|", $WA_columnTypesStr);
$WA_where_fieldValuesStr = "".((isset($_POST["WADAUpdateRecordID"]))?$_POST["WADAUpdateRecordID"]:"") ."";
$WA_where_columnTypesStr = "none,none,NULL";
$WA_where_comparisonStr = "=";
$WA_where_fieldNames = explode("|", $WA_indexField);
$WA_where_fieldValues = explode("|", $WA_where_fieldValuesStr);
$WA_where_columns = explode("|", $WA_where_columnTypesStr);
$WA_where_comparisons = explode("|", $WA_where_comparisonStr);
$WA_connectionDB = $database_cpDVD;
mysql_select_db($WA_connectionDB, $WA_connection);
if (!session_id()) session_start();
$updateParamsObj = WA_AB_generateInsertParams($WA_fieldNames, $WA_columns, $WA_fieldValues, -1);
$WhereObj = WA_AB_generateWhereClause($WA_where_fieldNames, $WA_where_columns, $WA_where_fieldValues, $WA_where_comparisons );
$WA_Sql = "UPDATE `" . $WA_table . "` SET " . $updateParamsObj->WA_setValues . " WHERE " . $WhereObj->sqlWhereClause . "";
$MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());
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);
}
}
?>