
March 2nd, 2005, 03:04 AM
|
|
Contributing User
|
|
Join Date: Oct 2004
Posts: 105
Time spent in forums: 4 h 41 sec
Reputation Power: 4
|
|
|
HELP: Can't display image.
Hi, I'm trying to display an image from my database but the image can't be seen. Here is my code:
PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Air Jordan 1</title>
</head>
<body>
<cfquery name = "aj1shoelist" datasource = "shoes">
SELECT imageURL, name, brand, details, price, size, color
from Shoe WHERE name = 'Air Jordan 1'
</cfquery>
<cfoutput query="aj1shoelist">
<p><img src = "#imageURL#" alt="Image"/> </p>
<p> </p>
<p> </p>
<table border="1" width="801" height="170">
<tr>
<td width="90" height="21"><strong>NAME: </strong></td>
<td width="699">#name#</td>
</tr>
<tr>
<td height="21"><strong>BRAND: </strong></td>
<td>#brand#</td>
</tr>
<tr>
<td height="21"><strong>DETAILS: </strong></td>
<td>#details#</br></td>
</tr>
<tr>
<td height="21"><strong>COLOR: </strong></td>
<td>#color#</br></td>
</tr>
<tr>
<td height="21"><strong>PRICE:</strong></td>
<td>#price#</td>
</tr>
<tr>
<td height="26"><strong>SIZE:</strong></td>
<td><SELECT NAME="Size">
<OPTION>Select a size</OPTION>
<OPTION VALUE="#size#">#size#</OPTION>
</SELECT></td>
</tr>
<tr>
<td height="21"> </td>
<td> </td>
</tr>
</table>
</cfoutput>
<a href="Welcome.htm">Home</a>
</body>
</html>
Thanks!
|