Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 20th, 2005, 10:22 AM   #1
rjbrynteson
Newbie
 
Join Date: Oct 2005
Posts: 7
Rep Power: 0 rjbrynteson is on a distinguished road
ASP grouping/date questions


here is what the page displays now ------------->
10/19/2005
2004 Nissan Maxima
10/19/2005
2003 Dodge Grand Caravan
10/18/2005
2002 Buick Park Avenue
10/18/2005
1997 Honda Accord
10/16/2005
2004 Ford F-150
10/15/2005
1990 Oldsmobile Starfire
------------------------------------------------------
here is what i want it to display
10/19/2005
2004 Nissan Maxima
2003 Dodge Grand Caravan

10/18/2005
2002 Buick Park Avenue
1997 Honda Accord

10/16/2005
2004 Ford F-150

10/15/2005
1990 Oldsmobile Starfire
-----------------------------------------
any suggestions ?

<!--#include virtual="database.asp"-->
<%
dim objConn
DBConnOpen objConn

dim ObjRS

dim CarSQL
dim ShowResults
ShowResults = False

set ObjRS=Server.CreateObject("ADODB.recordset")
	ObjRS.Open CarSQL, objConn

	CarSQL = "Select a.Year, a.Make,a.Model, a.date  from North_Yard a where a.Date >= getDate() - 7  order by a.Date DESC"





<%do until ObjRS.eof%>
                                <tr>
                                  <td width="49" height="15"><b><%=ObjRS("Date")%></b></td>
                                </tr>
                                <tr>
								
                                  <td colspan="3" class="main"></td>
                                </tr> 
                                                  
                          
                                <tr class="SearchResults<%=j%>">
                                  <td><%=ObjRS("Year")%>  </td>
                                  <td width="61"><%=ObjRS("Make")%></td>
                                  <td width="205"><%=ObjRS("Model")%></td>
                                </tr>
								
                                <%
							ObjRS.MoveNext
							
							i = i + 1
							%>
                                <%loop%>

Last edited by rjbrynteson; Oct 20th, 2005 at 10:25 AM. Reason: why is there a text box for reason for editing ?
rjbrynteson is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:32 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC