עזרה דחוף..
<body> <% 'our ADO constants Const adOpenForwardOnly = 0 Const adLockReadOnly = 1 Const adCmdTable = 2 Dim objConn , objRS 'create an ADO connection Set objConn = Server.CreateObject("ADODB.Connection") Set objRS = Server.CreateObject("ADODB.Recordset") 'connection string with the path to our Database and driver . Note this is for Access objConn.Open "DBQ=" & Server.MapPath("newdb.mdb")& ";Driver={Microsoft Access Driver (*.mdb)}" objRS.Open "users", objConn , adLockReadOnly, adCmdTable,adOpenForwardOnly 'display a table with our data . Looping through the recordset until we reach the end of file EOF %> <%=objRS("username") %> <%=objRS("hit")%> <%=objRS("one") %> </table> <% 'close objects and set them to nothing objRS.Close Set objRS = Nothing objConn.Close Set objConn = Nothing %>
יש לי בעיה בקוד הזה:כאשר אני כותב את כתובת השאלתיה הוא לא מציג לי את הפלט הנכון של המשתמש אלא את הנתונים של המשתמש הראשון ברשימה של בסיס הנתונים....מה אני צריך לשנות בקוד בשביל שזה יפעל כראוי.. תודה לעוזרים\עוזרות..