close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

insert record from file field using DFP

Thread began 10/21/2009 6:07 pm by JBWebWorks | Last modified 10/22/2009 1:56 pm by Jimmy Wu | 967 views | 3 replies |

JBWebWorks

insert record from file field using DFP

using PHP/mySQL have a form to insert items into record.
4 fields of the insert form are file/fields for images.
Using DFP to upload the images from these fields to folder 'uploads'

using the DW insert record server behavior, i want the file name from the file/field to be put into item column as text so that when displaying items i can put the image src path to the image with a recordset.

just tested the insert and the DFP worked correctly and uploaded image file 'cane21_img1.jpg' to folder 'uploads'

how can i get the file name to be inserted as text in the correct column of the item record?

thanks for your help,
Jim balthrop

Sign in to reply to this post

Jimmy Wu

In the bindings panel within dreamweaver, the file name that is uploaded is stored. You can get various values associated with the upload under the WA Upload Files in Bindings. You should use these values to insert the values you want into your database.

Sign in to reply to this post

JBWebWorks

Jimmy,

thanks for your response

i had never used data assist insert record before(had always used dreamweaver insert record)

i tried data assist insert single record and binded the picture fields to the dfp client file name for that file field image upload.

worked like a charm-> the images uploaded to folder 'uploads'
and the file names 'img_1.jpg' 'img_2.jpg' 'img_3.jpg' img_4.jpg' inserted in the proper column 'item_pic1' etc. of the item record.
so on the item display page i used
<img src="uploads/<?php echo $row_rs_itemcat['item_pic1']; ?>" />

WebAssist is the GREATEST!

Sign in to reply to this post

Jimmy Wu

Great to hear that you got it working. If you have any additional issues, feel free to make a new thread if you run into any additional issues.

Sign in to reply to this post

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...