close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

image upload problem

Thread began 1/19/2016 9:42 am by Jamie | Last modified 1/20/2016 4:25 pm by Ray Borduin | 198 views | 3 replies |

Jamie

image upload problem

Hey Ray

With the attached _update page, all the image uploads work fine except for SubImage1 which is uploading the image fine, but its not adding the filename to the database (its adding '0') - not sure what I am missing ?

On the same page, If the box is checked it does add 1 to the column ProductInStore in the db which is good. but for some reason if the checkbox for the element ProductInStore is unchecked it should add a 0 to the db for the ProductInStore column but it isnt.

Many thanks

Jamie

Sign in to reply to this post

Ray BorduinWebAssist

The image field looks correct. Are you sure the database field is set up as a varchar?

The checkbox can probably be fixed by updating the binding from:
((isset($_POST["ProductInStore"]))?$_POST["ProductInStore"]:"")

to:
((isset($_POST["ProductInStore"]))?$_POST["ProductInStore"]:"0")

Sign in to reply to this post

Jamie

yes is definitely set to varchar

thanks re the checkbox

Jamie

Sign in to reply to this post

Ray BorduinWebAssist

I'd have to debug it. Maybe send me a Skype message tomorrow when you see we are both online and I'll take a look with you in a connect meeting.

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