close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Defaulting to database value on product update

Thread began 3/17/2009 10:46 am by Travis250923 | Last modified 3/18/2009 8:43 am by Travis250923 | 2729 views | 4 replies |

Travis250923

Defaulting to database value on product update

How can I get the product update page to display the value already in the database? Right now it comes up as blank and when submitted wipes out the thumbnail information. Here is what I have the value set to on the upload file field.

<?php echo(str_replace('"', '&quot;', $row_WADAitems['ItemThumb'])); ?>

Sign in to reply to this post

Ray BorduinWebAssist

Are you trying to do this in a file input field? If so, it isn't possible. the code you have should work to display the information on the page.

Sign in to reply to this post
Did this help? Tips are appreciated...

Travis250923

So since this is a file field for an image update there is no way to default to what currently exists and someone will always have to re-upload the image? I suppose I could remove the image updates from this page and add a separate page for only updating the picture.

Sign in to reply to this post

Ray BorduinWebAssist

No, just set the default value in the upload server behavior to be the value from the recordset. This way if nothing is uploaded it will use the current value from the database.

Sign in to reply to this post
Did this help? Tips are appreciated...

Travis250923

Perfect solution thanks

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