Digital File Pro to DataAsist Insert and Update pages Errors
Hi Folks,
Im using DataAssist and Digital File Pro and have followed the guides to insert and update DA file upload to existing Insert and Update pages.
When applied, i get the following message when trying to insert a new product:
Notice: Undefined index: WA_UploadResult1 in C:\Inetpub\wwwroot\Barker Backup\clearance\newcastle\admin\stock_Insert.php on line 15
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Inetpub\wwwroot\Barker Backup\clearance\newcastle\admin\stock_Insert.php:15) in C:\Inetpub\wwwroot\Barker Backup\clearance\newcastle\admin\stock_Insert.php on line 22
Field 'Code' doesn't have a default value
On looking at it and comparing it with the backup file i made before i used DFP, ive noticed the following:
On the original backed up file, this looks like this:
$WA_connection = $global;
$WA_table = "stock";
$WA_sessionName = "WADA_Insert_stock";
$WA_redirectURL = "stock_Detail.php";
$WA_keepQueryString = false;
$WA_indexField = "ID";
$WA_fieldNamesStr = "Code|ProductName|ImageLge|Image|Description|Price|Category|Status";
$WA_fieldValuesStr = "".((isset($_POST["Code"]))?$_POST["Code"]:"") ."" . "|" . "".((isset($_POST["ProductName"]))?$_POST["ProductName"]:"") ."" . "|" . "".((isset($_POST["ImageLge"]))?$_POST["ImageLge"]:"") ."" . "|" . "".((isset($_POST["Image"]))?$_POST["Image"]:"") ."" . "|" . "".((isset($_POST["Description"]))?$_POST["Description"]:"") ."" . "|" . "".((isset($_POST["Price"]))?$_POST["Price"]:"") ."" . "|" . "".((isset($_POST["Category"]))?$_POST["Category"]:"") ."" . "|" . "".((isset($_POST["Status"]))?$_POST["Status"]:"") ."";
$WA_columnTypesStr = "',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''";
$WA_fieldNames = explode("|", $WA_fieldNamesStr);
$WA_fieldValues = explode("|", $WA_fieldValuesStr);
$WA_columns = explode("|", $WA_columnTypesStr);
The newly replaced file with DFP applied to it looks like this:
$WA_connection = $global;
$WA_table = "stock";
$WA_sessionName = "WADA_Insert_stock";
$WA_redirectURL = "stock_Detail.php";
$WA_keepQueryString = false;
$WA_indexField = "ID";
$WA_fieldNamesStr = "ImageLge";
$WA_fieldValuesStr = "".$WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"] ."";
$WA_columnTypesStr = "',none,''";
$WA_fieldNames = explode("|", $WA_fieldNamesStr);
$WA_fieldValues = explode("|", $WA_fieldValuesStr);
$WA_columns = explode("|", $WA_columnTypesStr);
Can you advise on the best way forward to rectify this issue.
Best regards
Paul