Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with MOD 1

Status
Not open for further replies.

brian1313

Programmer
Nov 1, 2001
29
US
Hey all,

This CF code:

<CFQUERY DATASOURCE=&quot;cfunipix&quot; name=&quot;gallery&quot;>
SELECT * FROM photos
</CFQUERY>

<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;2&quot; cellpadding=&quot;5&quot;>
<table align=&quot;center&quot;>
<tr>
<CFOUTPUT QUERY=&quot;gallery&quot; maxrows=&quot;6&quot;>
  <TD>#photo_name#</TD>
<CFIF gallery.CurrentRow MOD 3 EQ 0>
</tr>
<tr>
</CFIF>
</CFOUTPUT>
</tr>
</table>

Returns this HTML:

<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;2&quot; cellpadding=&quot;5&quot;>
<table align=&quot;center&quot;>
<tr>

Ê <TD>01.jpg</TD>

Ê <TD>02.jpg</TD>

Ê <TD>03.jpg</TD>

</tr>
<tr>

Ê <TD>04.jpg</TD>

Ê <TD>05.jpg</TD>

Ê <TD>06.jpg</TD>

</tr>
<tr>

</tr>
</table>

I'm just truncating the results with maxrows so you don't have to read all the HTML.

What is with these? Ê, Ê, Ê?

Thanks in advance...

-b-
 
You might download the file in ASCII, open in wordpad.. copy to notepad and save the file over itself...

Sounds cumbersome but it seems like an upload error to me... Did I help?
Vote!
 
well nuts,
that did it...

thanks much migit....

-b-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top