close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Displaying Images

Thread began 9/14/2009 7:19 am by sturgisk383938 | Last modified 9/14/2009 8:23 pm by sturgisk383938 | 1750 views | 5 replies |

sturgisk383938

Displaying Images

How can you display images using DataAssist ? I have the images in a folder.
I am trying to create a path in the (SQL) database to the images. I want to display the company image next to the search results. Is this the right method? If not what is?

Sign in to reply to this post

tom92909Beta Tester

To answer your question, we need to get some background information upfront...

1. SQL table structure :
Do you have a specific field in your table that DataAssist calls that is "reserved" specifically for an image filename?

2. The actual images directory :
Will that ever change?

In order to move forward here, I'm going to assume the following..

1. Yes you have a specific field reserved for an image filename.
2. The images directory is permanent and unique.

So...

The following should come as some help...

php:
<img  src="images/<?php echo $row_WADARecordset1['image_fieldname']; ?>" width="1024" height="768" border="0">



In the above code, I'm using a standard HTML tag for an image and then combining the static images directory along with a dynamic PHP call to the DataAssist image filename binding, then I'm identifying the width and height and no border.

The Recordset and image_fieldname should match whatever they actually are in your configuration.

Sign in to reply to this post

sturgisk383938

Images

I the reply i received is help for but i need more information to put me in the right
direction. Her are some information, the folder name is logo. This is where I am storing my images for display. In the database, I do have a field reserved for image filename. One of my questions is for the path I put logo/image in the database. Is this a good path for the folder?

<img class="WADADetailsMainImage" src="<?php echo $row_WADAjobs["logo"]; ?>"

I last replied suggested:
<img src="images/<?php echo $row_WADARecordset1['image_filename'];?>"> width"" height="" border="".

How can turn this displaying images from a folder?

Sign in to reply to this post

tom92909Beta Tester

My thoughts are that I wouldn't include the path in your filename.
Reserve the SQL table field only for the actual filename.

Then include the path in your <img> tag and echo the field data to display the image you need.

Sign in to reply to this post

sturgisk383938

Images

I did apply the code from your last reply. It is still not working.
For "image_fieldname" I put logo this the name of the column in my table. This column holds the names of the filenames. I want to display. I also enter the following this also include my path the the images.

<div class="WADADetailsMainImageArea"><img src="Computer/Macintoch HD/Applications/MAMP/htdocs/promotion-employment/logo<?php echo $row_WADAjobs["logo"]; ?>" width="100" height="100" border="2" />

What am I doing wrong?

Sign in to reply to this post

sturgisk383938

I got it to work

I got it to work thank you!!!!

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