Guys,
As I said earlier I am very new to CF. I don't know what I am
doing wrong. here is what I have. By the way... I really appreciate
everybody's time.
I have fr_events.cfm with this following code
<cfquery name="Recordset1"
datasource="#Application.databaseDatasource#"
username="#Application.databaseUsername#"
password="#Application.databasePassword#">
SELECT event_id,event_date, event_time, (case when
event_visitor is null or event_visitor ='' then event_home else
event_visitor || ' @ ' || Event_home end) as event, (select
count(*) from tms.web_event_seat where event_id=tms.event.event_id
and status='7') as tickets
FROM tms.event where event_date>today()
ORDER BY event_date ASC
</cfquery>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Barnstormers Tickets</title>
</head>
<body>
<table border="1" cellpadding="1" cellspacing="1">
<cfoutput query="Recordset1">
<tr>
<td>#Recordset1.event# <br
/>#dateformat(Recordset1.event_date,"mmmmm dd, yyyy")#<br>
#timeformat(Recordset1.event_time,"h:mm tt")#
<cfif #Recordset1.tickets# le 0>
<br /> <font color= color="##FF0000"> PLEASE
CALL 1-800-800-8788
<cfelse> <br />
<img src="fr_search_for_tickets.gif" /></cfif>
<td> <img
src="event_images.cfm?event_id=#recordset1.event_id#"/>
</tr>
</cfoutput>
</table>
</body>
</html>
and Event_images.cfm with the following code and I have JPG
files attached to every event_id.
as Per Sabaidee's suggestion I took out all tags from this
page . I still don't get my images displayed? Help please!!!
<cfparam type="numeric" name="#url.event_id#"
default="0"/>
<cfquery name="getImage"
datasource="#Application.databaseDatasource#"
username="#Application.databaseUsername#"
password="#Application.databasePassword#">
select image from tms.event where event_id = <cfqueryparam
value="#url.event_id#" cfsqltype="cf_sql_numeric"/>
</cfquery>
<!---<cfcontent
variable="getImage.event_image"/>--->
<cfcontent type="image/jpg"
variable="#getImage.image#">