% Option Explicit Dim sql, username, rsUser, rsMessages, newcount username = Session("username") 'If the username cookie is set, they must have logged in, so get their details from the database if username <> "" then %> <% sql = "SELECT icon FROM Users WHERE username = '" & username & "'" Set rsUser = Server.CreateObject("ADODB.Recordset") rsUser.Open sql, conn, 3, 3 sql = "SELECT messageread FROM messages WHERE sendto = '" & username & "'" Set rsMessages = Server.CreateObject("ADODB.Recordset") rsMessages.Open sql, conn, 3, 3 newcount = 0 if not rsMessages.EOF then rsMessages.Movefirst do until rsMessages.EOF if rsMessages("messageread") = False then newcount = newcount + 1 end if rsMessages.Movenext loop rsMessages.Movefirst end if end if %>
|
Members Only LOG-IN
If you are not currently an NJAST member please join NJAST. A membership form is located on the Registration page. Once you have joined NJAST you can sign up here for access to the members only pages on this site. If you check the "Remember Me" checkbox the system will remember your username for next visit (you will still have to enter your password). Register and log in to access members only pages. Registered members can access the user list and inbox, which include message sending facilities. These messages are accessible only through the website. Once you are logged in, you can use the Profile Editor to edit your stored profile.1 |