close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How to include Full Path of Graphic into Database?

Thread began 11/11/2012 7:07 pm by Mark | Last modified 11/12/2012 10:51 am by Mark | 588 views | 4 replies |

MarkBeta Tester

How to include Full Path of Graphic into Database?

Hi,

Have read a lot of forum entries about this, and still no clearer.

Can anyone give me the definitive answer for the following question please?

I have an update form.
On that form there are various fields and 1 File upload box.
When I upload the graphic, it stores the filename of the graphic only.

However, my website, takes its images from a specific folder stored elsewhere on the site.

Luckily, I have all the Webassist extensions, from supersuite to data bridge and design extender.

QUESTION:
How do I include the path of the graphic stored combined with the folder path for the database to pick up the path to the graphic.

At the moment, my database stores 'graphic1.jpg' (not includes quotes)
I want the database to hold the entry of '../images/slides/graphic1.jpg' (not includes quotes)

Is this possible? How easy it is? Is there a standard answer to this question? If not could a moderator tell me if this is going to be included soon in an update?

Many thanks, and regards
Mark

Sign in to reply to this post

Jason ByrnesWebAssist

the path to the image should not be stored in the database.

the reason for this is that the path will change on a page by page basis.

it is a better practice to store only the file name, then add the path to the page in the img tag.

for example:
<img src="../images/slides/<?php echo $row_recordsetName['columnName'] ?>" />

Sign in to reply to this post

MarkBeta Tester

I know other software (I wont mention Jason) has this facility and gives the developer the option to store a graphic name or full path name, so its a little disappointing there isn't the option here.

But if that is your definitive answer, I appreciate your time and trouble replying to my question (as always, you guys are quick to respond and try to help).

Other software I'm using on the site I'm developing uses full path in db, which is why my question.

Many thanks
Mark

Sign in to reply to this post

Jason ByrnesWebAssist

It is posible to do, just not a recommended method. in the Insert record behavior, you can select the image column, then type the name of the upload folder before the dynamic binding code that sets the image name

Sign in to reply to this post

MarkBeta Tester

Thanks Jason

R, Mark

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