View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Digital File Pro to DataAsist Insert and Update pages Errors

Thread began 8/20/2009 6:57 am by Suggs | Last modified 8/24/2009 5:25 pm by Suggs | 1907 views | 5 replies

Suggs

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

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...