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

Blob column

Thread began 10/11/2009 11:57 am by maurizio.melandri390100 | Last modified 10/12/2009 10:44 am by Office Guy-172461 | 1213 views | 4 replies |

maurizio.melandri390100

Blob column

Hello,
I work with MySQL 5.1.37 / PHP 5.3.0, Dreamweaver CS4.
I inserted a new column, a blob, in my table. When I enter in Data Wizard Assist me he returns a generic error MySql, but Dreamweaver connection sees the new column. I have deleted the column and everything works again. Why? I need This column to store photos in a catalog.

Sign in to reply to this post

Office Guy-172461

I don't recommend storing images in the database. It's better to store the file names of the images and keep the images out of the database.

See this thread:
4975.htm

Sign in to reply to this post

anonymous

Maurizio,

I would second the opinion of the Office Guy... you are heading for troubled waters with that method. Add a folder to your site to store all the images and files and you'll be happy you did.

Cheers,

Brian

Sign in to reply to this post

maurizio.melandri390100

Ok, but i dont know PHP. I use data assist for thi. How can I do what you say?

Sign in to reply to this post

Office Guy-172461

Just create a text field instead of a blob. Create a folder for the images.

Example:

You have a folder called photos containing an image called photo1.jpg
In your table, you have a column called photo. In this column you store the name photo1.jpg

To display the image, you add the path to the folder containing the images.
<img id="ProductImage" src="photos/<?php echo $row_WADAProducts['photo']; ?>" />

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