ערכתי לאחרונה בתאריך 22.08.07 בשעה 16:12 בברכה, Ice Cold
<!-- #include file="db.asp" --> <% if Request.Form.Count <= 0 Then Rs.Open "select * from dani",Con,3,2 %> <table> <tr> <% cellCounter = 0 RS.moveFirst While not RS.EOF %> <td><%=Rs.Fields("name")%></td> <% RS.moveNext cellCounter = cellCounter + 1 if (cellCounter = 4) then cellCounter = 0 %> </tr><tr> <% end if Wend %> </tr> </table> <% Else for i=1 to Request.Form.Count Next Set Con=Nothing: Set Rs=Nothing End if %>
|
ובבקשה להבא תרשום הכל בתגית code כדי שהקוד יהיה קריא יותר.
אתה גם משתמש בהרבה יותר מדי תגיות פתיחה וסגירה של ASP. אתה לא אמור לפתוח ולסגור בכל פקודה...