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
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
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'] ?>" />
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.
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
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
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?
This is all off my localhost. C:\xampp\htdocs\Century\product_images\
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?
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?
when you right click the image place holder, it goes to the 404 error, but what is the address in the address bar please.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.