shawntbanks
Programmer
I am trying to gather information from a database and display it on a page. The problem being that I can Only get the data to display in on column, I want it to fill the page. I am tryng to display a picture with a name under it. On the page i would like to have between 3 and four columns wide and however long it needs to be. Any help would be appricated, thanks
Code Included code in red is the main code
<cfset Now_date = #dateformat (now(), "yyyy-mm-dd"
# >
<cfquery name="Get_Featured" datasource="market">
select Picture1, itemname
from saleitem
where featured = '1' and (#CreateODBCDate(Now_date)# between begindate and enddate)
</cfquery>
<cfinclude template="Templates/Header_&_Sidebar_for_Main_Folder.cfm">
<td rowspan="2" valign="top" bgcolor="#FFFFFF">
<table><tr><td><font color="#669933" size="4" face="Georgia, Times New Roman, Times, serif"><strong>Featured Items</strong></font>
</td></tr></table>
<table><cfoutput query="Get_Featured"><tr><td width="200"><div align="center"><img src="sale_item_Images/#picture1#" alt="Click on picture to see ad" width="150" height="100" border="0"></a><BR>
<font size="1" face="Georgia, Times New Roman, Times, serif">#itemname#</font></div></td>
</tr></cfoutput></table>
</tr>
<tr>
<td background="images/top_space2.gif"><img src="images/top_space2.gif"></td>
</tr>
</table>
</td></tr>
</table>
</body>
</html>
Code Included code in red is the main code
<cfset Now_date = #dateformat (now(), "yyyy-mm-dd"
<cfquery name="Get_Featured" datasource="market">
select Picture1, itemname
from saleitem
where featured = '1' and (#CreateODBCDate(Now_date)# between begindate and enddate)
</cfquery>
<cfinclude template="Templates/Header_&_Sidebar_for_Main_Folder.cfm">
<td rowspan="2" valign="top" bgcolor="#FFFFFF">
<table><tr><td><font color="#669933" size="4" face="Georgia, Times New Roman, Times, serif"><strong>Featured Items</strong></font>
</td></tr></table>
<table><cfoutput query="Get_Featured"><tr><td width="200"><div align="center"><img src="sale_item_Images/#picture1#" alt="Click on picture to see ad" width="150" height="100" border="0"></a><BR>
<font size="1" face="Georgia, Times New Roman, Times, serif">#itemname#</font></div></td>
</tr></cfoutput></table>
</tr>
<tr>
<td background="images/top_space2.gif"><img src="images/top_space2.gif"></td>
</tr>
</table>
</td></tr>
</table>
</body>
</html>