% Set dBConn = Server.CreateObject("ADODB.Connection") dBConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.MapPath("../db/glctraining.com.mdb") & ";" GetBoatsForSale = "SELECT * FROM BoatsForSale" Set BoatsForSale = Server.CreateObject("ADODB.RecordSet") BoatsForSale.Open GetBoatsForSale, dBConn, 1, 1 If BoatsForSale.EOF And BoatsForSale.BOF Then BoatsForSale.Close Set BoatsForSale = Nothing dBConn.Close Set dBConn = Nothing Else Do While Not BoatsForSale.EOF BoatModel = BoatsForSale("BoatModel") BoatType = BoatsForSale("BoatType") BoatPrice = BoatsForSale("BoatPrice") BoatYear = BoatsForSale("BoatYear") BoatLength = BoatsForSale("BoatLength") BoatEngine = BoatsForSale("BoatEngine") BoatSmallImageURL = BoatsForSale("BoatSmallImageURL") BoatLargeImageURL = BoatsForSale("BoatLargeImageURL") GLCTListing = GLCTListing & "
| " & BoatModel & " [" & BoatType & "] | "
GLCTListing = GLCTListing & " " & FormatCurrency(BoatPrice) & " | "
GLCTListing = GLCTListing & " |
| Year: Length: Engines: | "
GLCTListing = GLCTListing & " " & BoatYear & " " & BoatLength & " " & BoatEngine & " | "
GLCTListing = GLCTListing & " ||
|
||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
||||||||||||||||||||||||||||||||||||||||