close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Products_details.php page shows image file name instead image

Thread began 6/10/2013 7:03 pm by Paul | Last modified 6/12/2013 12:54 pm by Jason Byrnes | 2224 views | 24 replies |

Paul

Products_details.php page shows image file name instead image

I've made the products_details page from the DataAssist wizard. Everything shows correctly except the image is the file name. 9651.jpg.

Any thoughts or direction?

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

change the recordset binding on the page to a image tag.

change:
<?php echo $row_recordsetName['imageColumn'] ?>

to:
<img src="path/to/image/folder/<?php echo $row_recordsetName['imageColumn'] ?>" />

Sign in to reply to this post

Paul

Thanks for the response, Jason.

It is not working though. I've changed the coding as you mentioned. The file name is not showing up, and neither is the image. I noticed your code doesn't have a ; (semi-colon) before the ?. Is there supposed to be one? Either way, it is not working.

Does it matter that on every other page in my site, the recordset name is: rsProducts and in the WA created pages, it is WADAproducts? The admin pages that WA created show the WADAproducts recordset name.

When I look at the source code of the live page on my localhost, it does show the correct path and file name: <td class="DetailsPage"><img src="product_images/9651.jpg

I've attached the page if you need it.

Appreciate it.

Attached Files
products_detail.php
Sign in to reply to this post

Jason ByrnesWebAssist

the coding looks correct. and you say the source has the correct path and file name:
<img src="product_images/9651.jpg


in the browser, right click where the image should apear, you should have the option to Open The Image In a new window, or Tab. What is the address for the image? double check that address to make sure it is correct

Sign in to reply to this post

Paul

Here is the page that comes up when I click on the image path from the source code:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Object not found!</title>
<link rev="made" href="mailto:postmaster@localhost" />
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
body { color: #000000; background-color: #FFFFFF; }
a:link { color: #0000CC; }
p, address {margin-left: 3em;}
span {font-size: smaller;}
/*]]>*/--></style>
</head>

<body>
<h1>Object not found!</h1>
<p>


The requested URL was not found on this server.



If you entered the URL manually please check your
spelling and try again.



</p>
<p>
If you think this is a server error, please contact
the <a href="mailto:postmaster@localhost">webmaster</a>.

</p>

<h2>Error 404</h2>
<address>
<a href="/">localhost</a><br />
<span>Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7</span>
</address>
</body>
</html>

I verified through DW's FTP that the folder and image are there and correct.

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

that is a 404 error meaning the file cannot be found.

this means the path to the image is not correct.

what is the full address?

Where are the images uploaded to?

Sign in to reply to this post

Paul

This is all off my localhost. C:\xampp\htdocs\Century\product_images\

Sign in to reply to this post

Jason ByrnesWebAssist

you did not answer this question:
what is the full address?


what is the address for the details page?

What is the address for the images when you get the 404 error?

Sign in to reply to this post

Paul

Sorry...

C:/xampp/htdocs/Century/product_images/9561.jpg

Details page: http://localhost/Century/products_detail.php?prodID=1

Not sure what you mean by the address for the images when I get the 404...did this answer your questions?

Sign in to reply to this post

Jason ByrnesWebAssist

  Not sure what you mean by the address for the images when I get the 404...did this answer your questions?  




when you right click the image place holder, it goes to the 404 error, but what is the address in the address bar please.

Sign in to reply to this post
loading

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