Hi
I am running windows Xp Pro with IIS server locally.
I have ASP Page to display record from Access 2003 database.
This is my script
<%@ Language=VBScript %>
<%
Option Explicit
Response.expires = 0
Dim objDBConn, objRS, strQuery, strWhere
Dim strConnection, strOrderBy
Dim myPostcode, myNumberOfRoom, myPropertyType, myCategory
Set objDBConn = Server.CreateObject("ADODB.Connection")
strConnection = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("../vme.mdb") & ";DefaultDir=" & Server.MapPath(".") & ";DriverId=25;FILE=MS Access;MaxBufferSize=512;PageTimeout=5"
objDBConn.Open strConnection
Set objRS = Server.CreateObject("ADODB.Recordset")
Set objRS.ActiveConnection = objDBConn
strQuery = "Select * from tblProperty "
objRS.Open strQuery
While Not objRS.EOF
Response.Write "<tr>"
Response.Write "<td align='center'>" & objRS("Location") & "</td>"
Response.Write "<td align='center'>" & objRS("Postcode") & "</td>"
Response.Write "<td align='center'>" & objRS("NumberOfRooms") & "</td>"
Response.Write "<td align='center'>" & objRS("Price") & "</td>"
Response.Write "<td align='center'>" & objRS("status") & "</td>"
Response.Write "<td align='center'><img src=../photos/" & objRS("Photo1") & " name="" width='100' height='80' > </td>"
Response.Write "</tr>"
Response.Write "<br>" & vbCrLf
objRS.MoveNext
Wend
%>
I only have 5 records.
But for some reason when test this page through internet explorer browser. my ASP page is only displaying three records.
Out of this three records, only two record display jpg file(ThumpsNail) and third record only display text fields data, but no jpg file, instead displaying graphic information ie ( <img src=../photos/pic51.jpg name=" width='100' height='80' > )
I am lost here.
Please could you help me.
many thank
I am running windows Xp Pro with IIS server locally.
I have ASP Page to display record from Access 2003 database.
This is my script
<%@ Language=VBScript %>
<%
Option Explicit
Response.expires = 0
Dim objDBConn, objRS, strQuery, strWhere
Dim strConnection, strOrderBy
Dim myPostcode, myNumberOfRoom, myPropertyType, myCategory
Set objDBConn = Server.CreateObject("ADODB.Connection")
strConnection = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("../vme.mdb") & ";DefaultDir=" & Server.MapPath(".") & ";DriverId=25;FILE=MS Access;MaxBufferSize=512;PageTimeout=5"
objDBConn.Open strConnection
Set objRS = Server.CreateObject("ADODB.Recordset")
Set objRS.ActiveConnection = objDBConn
strQuery = "Select * from tblProperty "
objRS.Open strQuery
While Not objRS.EOF
Response.Write "<tr>"
Response.Write "<td align='center'>" & objRS("Location") & "</td>"
Response.Write "<td align='center'>" & objRS("Postcode") & "</td>"
Response.Write "<td align='center'>" & objRS("NumberOfRooms") & "</td>"
Response.Write "<td align='center'>" & objRS("Price") & "</td>"
Response.Write "<td align='center'>" & objRS("status") & "</td>"
Response.Write "<td align='center'><img src=../photos/" & objRS("Photo1") & " name="" width='100' height='80' > </td>"
Response.Write "</tr>"
Response.Write "<br>" & vbCrLf
objRS.MoveNext
Wend
%>
I only have 5 records.
But for some reason when test this page through internet explorer browser. my ASP page is only displaying three records.
Out of this three records, only two record display jpg file(ThumpsNail) and third record only display text fields data, but no jpg file, instead displaying graphic information ie ( <img src=../photos/pic51.jpg name=" width='100' height='80' > )
I am lost here.
Please could you help me.
many thank