Jump to content

mickey

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by mickey

  1. The problem is that you use a variable to display your result. In the while loop you get the value, you assign that to the variable, then get the next, ovewrite the same variable with the new value and so on. So you only display the last value, right?Your solution would be to display the result in the while loop, something like this:Do While Not rsEnc.EOFsGQDEncName = rsEnc.Fields("name")sGHTTemp = sGHTTemp & " <tr>" & vbCrLf & _" <td colspan=2 width=100%_>" & vbCrLf & _" <span class='issue-field-label'>Enclosure Records</span>" & vbCrLf & _" <span class='issue-field-content'>: " & sGQDEncName & "</a>" & vbCrLf & _" </span>" & vbCrLf & _" </td>" & vbCrLf & _" </tr>" & vbCrLf & _"</table>" & vbCrLfrsEnc.movenext loopelseresponse.write "end of file"end iffnCLDestroyObject(rsEnc)Try this and let me know!
    i've done it and it works
  2. i did my coding like this.then as long there is still data in the dbase it will display it.hope it work for you.i'm new too in asp.about 1 and half month.<%while not rs.EOF%>Response.Write("<TD>")Response.Write(rs("courses")& "</TD>")

  3. I would suggest setting up your data so that you have three tables in your database: UserProfiles, Courses, User_Courses (or some other more intuitive name).
    UserProfiles:   - UserProfileID   - Username   - Password   - FirstName   - LastName   - etc...Courses:   - CourseID   - Title   - Description   - Credits   - etc...User_Courses:   - UserProfileID   - CourseID

    This way you will have one UserProfile record for each user, one Course record for each course, and as many records as you want for the pairing of users and courses. If a particular user (say UserProfileID = 4) signs up for 4 courses (CourseIDs 5, 16, 22, and 31), your User_Courses table would contain:

    UserProfileID	CourseID4				   54				   164				   224				   31

    I hope this helps.

    i've already have three tables like you said.but my supervisor ask me so in one form a user can apply many courses.my form is like this.course1 name_________________course2 name_________________course3 name_________________user name_________________ID_________________etc the user profileso i want to make each of the course,course1 2 and 3 to be inserted into differrent line in tables but the user profile will be duplicate into each line too.is it possible to do this?
  4. i made a form where a user will entered the courses that they want to attend.i wish to make the user can choose multiple courses in one form but only once enter their profile.what i want to ask is how can i make duplicate data in database so each of the courses will be put into differrent line and the profile of the user will duplicate for each line in dbse.i use access as my dbase.i don't know what kind of coding to use to make that.

  5. i want to make when the user want to changed the password,they have to entered old password,new password and confirm password.can anyone help me with the coding?the old password must exactly as the current password.and new and confirm password must be same.help me please

×
×
  • Create New...