close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Database Filename Insert

Thread began 6/15/2011 6:02 pm by curtis_elam375284 | Last modified 6/16/2011 7:44 am by Jason Byrnes | 3300 views | 3 replies |

curtis_elam375284

Database Filename Insert

Hello WA Pro,

I need help uploading my images to the database. Right now the images upload to the directory I want it to go to. But it does not put the file name in the column names. It just says NULL in my MySQL database. I have the fields with a "VARCHAR(255)" type. Can someone help please. Below is my link to the website update page. Thanks a whole lot.


frat_omega_prods_update.php?recordID=5

Sign in to reply to this post

iansheldon422428

Are you using Data Assist to insert the record?

What binding are you using for the image field?

The WA File Upload behavior adds its own set of bindings to the Dreamweaver bindings panel. The one you need to use in your insert command is 'Server File Name'

Then when you display this back out to a web page use a dynamic value for the image proceeded with the page to the file... e.g. /public/images/<?php echo $row_recordset['image']; ?>

You also only need one upload field - not four. Within the WA Upload behavior you can create your seperate resize values and this creates additional bindings for each resize that you can insert into the relevant fields within your insert.

Hope this helps?

Cheers
Ian

Sign in to reply to this post

curtis_elam375284

Thanks Ian for the replay.

I am not using "Data Assist". I am using the standard PHP update behavior.

For the binding, I was using the "File Field" name. The std PHP update behavior will not let me use any other binding.

Do I need to delete that std PHP behavior and use the "Data Assist"? Or perhaps I can alter the code just a bit. Please advise. Thanks again.

Sign in to reply to this post

Jason ByrnesWebAssist

You need to use Data Assist in order to store the uploaded file name.

The File Upload of Digital File Pro creates a new binding group in the bindings panel named WA Uploaded Files (File Field Name) where "File Field Name" is the name of the file field in your form. This binding group contains a Server File Name binding.

you need to use this server file name binding in the upload to store the uploaded file name to the database.

the Dreamweaver update server behavior is limited in that it only allows you to use form bindings. Data Assist gives you the ability to select from any binding listed in the bindings panel for your dynamic data.

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