close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Images Upload

Thread began 5/07/2010 1:35 am by Pardall1955 | Last modified 5/13/2010 10:21 am by Pardall1955 | 1835 views | 14 replies

CraigRBeta Tester

Ok, I'm not sure exactly what the problem is, but i'll go through your last reply...

If I use the either the check box of the menu list, and dynamically connect it to the database field (displayImage) I would only get the number (1=yes)(0=no) but as I would update it if the number is for example 1, it would go back to be 1 again.

If you use the check box, when the page loads, you would have the checkbox retrieve its value from the recordset.
If the displayImage value is 1, the box would be checked, if 0, the box would be unchecked.

If you decide to use a list/menu instead, you would either use static options for Yes and No, with Value 0 having a label of 'No' and Value 1 having a value of 'Yes', or use a reference table with Value and Description as a dynamic source of the list menu.
Whatever you decide, the value would be equal to the recordset value returned.
This way, the user would choose YES or NO, but 1 or 0 would be stored in the table.

The other problem I first encountered was that I was trying to do all the update and displaying the image option on the update form. But it did not work, what was happening was that it was hiding the member as I would set it to NO(0) and show it again once I set it to Yes(1). That did not make sense to me, since I only wanted to be able to hide or show the image. Since the element was being updated to the displayImage field only

When the user is trying to view the images, the filter criteria 'display = 1' will determine whether or not the image is shown.
Here, I would have a show region server behavior, to show a relevant message if the recordset is empty, (ie no image) and the image itself if the recordset returns a row..

For the administrator, you need to see all rows in the recordset, whether or not the display flag is yes or no.

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





Ease of use


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