Hello,
Im making myself a website and i'm putting a photos page on it. I am using paging to display the photos 10 per page, but i'm getting an error that i cant seem to debug...
Anyone have any ideas
The error is from the red underlined line...
The fields are present in the database and contain text... the photo files (*.jpg) are in the correct folder (but I dont think that really matters...)
My SQL string to select from the database is
I'm not hosting this page on Frihost by the way...
Thanks in advance for any help
Im making myself a website and i'm putting a photos page on it. I am using paging to display the photos 10 per page, but i'm getting an error that i cant seem to debug...
Anyone have any ideas
The error is from the red underlined line...
| Quote: |
|
Response.Write vbCrLf ' Continue with a title row in our table Response.Write "<table border=""0"">" & vbCrLf ' Show field names in the top row Response.Write vbTab & "<tr>" & vbCrLf For I = 0 To oRS.Fields.Count - 1 response.write "</tr>" Response.Write "<tr><td><a href='displaygroup.asp?group=" & oRS("group") & "'><img src='photos/" & oRS("photo") & ".jpg' width='80' height='60'></a>" Response.Write "<br><a class='photodetail' href='displaygroup.asp?group=" & oRS("group") & "'>" & oRS("group") & "</a>" Response.Write "</td>" Next 'I Response.Write vbTab & "</tr>" & vbCrLf ' Loop through our records and ouput 1 row per record iRecordsShown = 0 Do While iRecordsShown < iPageSize And Not oRS.EOF Response.Write vbTab & "<tr>" & vbCrLf For I = 0 To oRS.Fields.Count - 1 Response.Write vbTab & vbTab & "<td>" Response.Write oRS.Fields(I) Response.Write "</td>" & vbCrLf Next 'I Response.Write vbTab & "</tr>" & vbCrLf ' Increment the number of records we've shown iRecordsShown = iRecordsShown + 1 ' Can't forget to move to the next record! oRS.MoveNext Loop ' All done - close table Response.Write "</table>" & vbCrLf End If |
The fields are present in the database and contain text... the photo files (*.jpg) are in the correct folder (but I dont think that really matters...)
My SQL string to select from the database is
| Quote: |
|
strSQL = "SELECT DISTINCT group AND photo FROM photo WHERE pass='mypassword'" set oCN = server.createobject("ADODB.Connection") oCN.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" _ & Server.Mappath("db/homepg.mdb") set oRS= oCn.execute( strSQL ) |
I'm not hosting this page on Frihost by the way...
Thanks in advance for any help
