Hallo Alle zusammen,

ich bin neu hier, und habe auch schon ein bloedes Problem.

ich habe ein Listing, das mir Datensaetze aus einer Datenbank anzeigt. Es
schreibt alle Datensaetze untereinander. Aber genau das soll es nicht, denn
ich m�chte die Datensaetze in Fuenfergruppen nebeneinander angeordnet haben.
Ich habe nun schon alles M�gliche probiert, aber nie erfolgreich.(die
HTML-Tabelle geaendert ...- da stimmt
die  IF-Schleife innerhalb der HTML-Tabelle nicht mehr, aber ich kann es
auch nicht ausbessern, da ich nicht wirklich verstanden habe, was genau sie
tut.) Wie kann ich das regeln?

<%
' Get the Current Page
pg = TRIM( Request( "pg" ) )
IF pg = "" THEN pg = 1

' Open the Recordset
Set prodRS = Server.CreateObject( "ADODB.Recordset" )
prodRS.ActiveConnection = Con
prodRS.CursorType = adOpenStatic
prodRS.PageSize = 10
sqlString = "SELECT product_id, product_picture, product_name,
product_briefDesc " &_
  "FROM Products WHERE product_category='" & cat & "' " &_
  "AND product_status=1 " &_
  "ORDER BY product_name "
prodRS.Open sqlString
prodRS.AbsolutePage = pg
%>
<table width="550" border=0
 cellpadding=5 cellspacing=0>
<%
WHILE NOT prodRS.EOF AND rowCount < prodRS.PageSize
rowCount = rowCount + 1
%>
<tr>
  <td>
  <% IF prodRS( "product_picture" ) <> "?????" THEN %>
  <IMG SRC="<%=prodRS( "product_picture" )%>"
   HSPACE=4 VSPACE=4 BORDER=0 align="center">
  <% END IF %>
  </td>
  <td>
  <a href="product.asp?pid=<%=prodRS( "product_id" )%>">
  <b><%=prodRS( "product_name" )%></b></a>
  <br><%=prodRS( "product_briefDesc" )%>
  <br><a href="product.asp?pid=<%=prodRS( "product_id" )%>">
  get more information</a>
  </td>
</tr>
<tr>
  <td colspan=2 align="center">
  &nbsp;
  </td>
</tr>
<%
prodRS.MoveNext
WEND
%>
</table>
<%
IF prodRS.PageCount > 1 THEN
%>
<font color="darkgreen">
<b>Go to page: </b>
<%
  FOR i = 1 to prodRS.PageCount
  IF i <> cINT( pg ) THEN
%>
<a href="default.asp?cat=<%=cat%>&pg=<%=i%>">
<%=i%></a>&nbsp;
<% ELSE %>
<b><%=i%></b>&nbsp;
<% END IF %>
<%
  NEXT
%>
</font>
<%
END IF
%>


Vielleicht koennt Ihr mir helfen. Vielen Dank!

Susan




| Oft Gefragtes: http://www.aspgerman.com/aspgerman/faq/
| [aspdebeginners] als [email protected] subscribed
| http://www.aspgerman.com/archiv/aspdebeginners/ = Listenarchiv
| Sie knnen sich unter folgender URL an- und abmelden:
| http://www.aspgerman.com/aspgerman/listen/anmelden/aspdebeginners.asp

Antwort per Email an