Tuesday, March 30, 2010

Inserting paths to mysql database images

Hello,

I am happily use a Mysql/PHP setup in Dreamweaver cs4 to populate my webpages with text and numerical info. However, I cannot work out how to insert paths to images (Dreamweaver does not seem to accept image Blobs - just dispalys a load of gobbledygook - but prob not good for perforance anyway).

So in Mysql i have a 'text' field with my image path entered - localhost/wwwroot/websitename/images/picture.jpg

I have tried shortening the string to simply /imagespicture.jpg; or using backslashes, but nothing works.

Dreamweaver just displays the path text and not the image in Live Data or Live View.

Thanks in anticipation

Inserting paths to mysql database images

Got it!

%26lt;img src=''Images/picture.jpg''%26gt; in text field in MySql

I search for hours online for answers and then as soon as I post here each time, I work it out ten minutes later!

No comments:

Post a Comment